HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Running out of PTYs
Operating System - HP-UX
1833776
Members
2241
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 11:40 AM
06-24-2002 11:40 AM
I have a developer whose application is generating errors that there are no more pty's left.
1) I don't see any such error in syslog.log. Wouldn't I normally see it there?
2) Are the only two kernel parameters controlling pseudoterminals npty and nstrpty?
3) Is there a difference between total number of pty's available to all users and total pty's available to a single user?
Thanks...Kevin
1) I don't see any such error in syslog.log. Wouldn't I normally see it there?
2) Are the only two kernel parameters controlling pseudoterminals npty and nstrpty?
3) Is there a difference between total number of pty's available to all users and total pty's available to a single user?
Thanks...Kevin
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 11:55 AM
06-24-2002 11:55 AM
Solution
Hi,
You are running out of pts drivers on the server. Do this
a) Check the number of pty/s drivers that are created in /dev/pty and /dev/pts :-
# ls *|wc -l
Most likely you'll get 60 (ie the default).
b) Increase the count to say 200
# cd /dev
# insf -n200 -dpty0
# insf -n200 -dpty1
# insf -d pts -s 200 -e
c) Now try to login again.
HPUX 11 introduced the 'nstrtel' parameter which must also be utilised.
# cd /dev
# insf ???d pty ???s 1024 ???e ???v
# insf ???d ptm ???s 1024 ???e ???v
# insf -d telm ???s 1024 ???e ???v
# insf -d tels ???s 1024 ???e -v
The two kernel parameters controlling pseudoterminals are npty and nstrpty
npty: Specifies the maximum number of pseudo-tty data structures available on the system.
nstrpty: maximum number of streams based pseudo-tty data structures available
on the system (used by rlogind)
The errors based on pty are not logged in syslog.log
Piyush
You are running out of pts drivers on the server. Do this
a) Check the number of pty/s drivers that are created in /dev/pty and /dev/pts :-
# ls *|wc -l
Most likely you'll get 60 (ie the default).
b) Increase the count to say 200
# cd /dev
# insf -n200 -dpty0
# insf -n200 -dpty1
# insf -d pts -s 200 -e
c) Now try to login again.
HPUX 11 introduced the 'nstrtel' parameter which must also be utilised.
# cd /dev
# insf ???d pty ???s 1024 ???e ???v
# insf ???d ptm ???s 1024 ???e ???v
# insf -d telm ???s 1024 ???e ???v
# insf -d tels ???s 1024 ???e -v
The two kernel parameters controlling pseudoterminals are npty and nstrpty
npty: Specifies the maximum number of pseudo-tty data structures available on the system.
nstrpty: maximum number of streams based pseudo-tty data structures available
on the system (used by rlogind)
The errors based on pty are not logged in syslog.log
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 12:06 PM
06-24-2002 12:06 PM
Re: Running out of PTYs
Hi,
npty is present in 10.2 and 11.x both
nstrpty is present only in 11.x ( Streams based pseudo terminals )
Piyush
npty is present in 10.2 and 11.x both
nstrpty is present only in 11.x ( Streams based pseudo terminals )
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 06:33 PM
06-24-2002 06:33 PM
Re: Running out of PTYs
The number of available pty's is controlled by 2 functions: the number of device files and the kernel parameter. Both must be increased at the same time. While you can manually create a new kernel with npty (and nstrpty for 11.0/11.11) and then run insf, it's a lot easier just to have SAM do it. Change the ntpy (nstrpty and nstrtel) and SAM will create the device files automatically.
Bill Hassell, sysadmin
Bill Hassell, sysadmin
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP