- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Reason: get_pty: not enough ptys
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
03-08-2011 07:07 AM
03-08-2011 07:07 AM
Reason: get_pty: not enough ptys
We have Server Model HP RX 2660 inetgrity with
HP-UX B.11.31 U ia64 itanium based system . Getting below error after 78 xterm sessions
xterm: Error 32, errno 16: Device busy
Reason: get_pty: not enough ptys
We have set below paramets already
kctune nstrtel nstrpty npty
Tunable Value Expression
npty 4000 4000
nstrpty 1000 1000
nstrtel (now) 60 Default
(next boot) 200 200
But stil getting same error . I have alreay increased nstrtel to 200 which will become after reboot , that we will do it tommrrow morning.Let me know what can be the issue causing this error.
xterm: Error 32, errno 16: Device busy
Reason: get_pty: not enough ptys
Awaiting response . Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2011 08:00 AM
03-08-2011 08:00 AM
Re: Reason: get_pty: not enough ptys
You must boot to get the nstrtel figure to go to 200 as you have set it.
There is no way around reboot.
There is no cost in setting it higher. I'd make it the same as nstrpty
Then boot, then all will be well.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2011 08:09 AM
03-08-2011 08:09 AM
Re: Reason: get_pty: not enough ptys
Just recreate automatically devices and y pseudo-drivers:
#insf -e
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2011 01:42 AM
03-09-2011 01:42 AM
Re: Reason: get_pty: not enough ptys
after reboot & chaging all parametere to 1000 still users can not open xterms . it does not go beyond 81 sessions. Let me know anything need to be done further any other kernel parameter ned to change.
Thank & regards
Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2011 02:16 AM
03-09-2011 02:16 AM
Re: Reason: get_pty: not enough ptys
1) npty specifies the maximum number of pseudo-tty data structures that are available on the system.
Acceptable Values:
Minimum 1
Maximum Memory limited
Default 60
npty limits the number of the following structures that can be used by the pseudo-teletype driver:
struct tty pt_tty[npty];
struct tty *pt_line[npty];
struct pty_info pty_info[npty];
2)nstrpty defines the maximum number of streams-based PTYs allowed on the system.
Acceptable Values:
Minimum 0
Maximum Memory limited
Default 0
nstrpty limits the number of streams-based PTYs that are allowed system-wide. When sending data to PTY devices (such as windows), a PTY device must exist for every window that is open at any given time.
**nstrpty should be set to a value that is equal to or greater than the number of PTY devices on the system that will be using streams-based I/O pipes.** Using a parameter value significantly larger than the number of PTYs is not recommended. nstrpty is used when creating data structures in the kernel to support those streams-based PTYs, and an excessively large value wastes kernel memory space.
3) nstrtel specifies the number of telnet device files that the kernel can support for incoming telnet sessions.
Acceptable Values:
Minimum 60
Maximum
Default 60
nstrtel specifies the number of kernel data structures that are created at system boot time that are required to support the device files used by incoming telnet sessions on a server. **This number should match the number of device files that exist on the system.** If the insf command or SAM is used to create more telnet device files, the value of nstrtel must be increased accordingly or the device files cannot be used because there are no kernel data structures available for communicating with the system.
**Select a value for nstrtel that is equal to or greater than the number of telnet device files on the system.** Selecting a value that exceeds the number of device files actually existing on the system wastes the memory consumed by extra data structures, but it may be justified if you are planning to add more device files.
After modify these parameters, the kernel must be updated and reboot the system.
When the system is up, recreate all devices and y pseudo-drivers:
#insf -e
Are you opening your xterm session through an emulator (eg: Reflection-X)?
Yes: Do you see a dot files in the home directory where you do the export of TERM variable? Move them to a subfolder and retry.
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2011 05:42 AM
03-09-2011 05:42 AM
Re: Reason: get_pty: not enough ptys
we are opening xterm thru Hummingbird excced . so is their anything to check in that case.
Regards,
Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2011 06:16 AM - last edited on 08-04-2011 11:06 AM by Kevin_Paul
03-09-2011 06:16 AM - last edited on 08-04-2011 11:06 AM by Kevin_Paul
Re: Reason: get_pty: not enough ptys
duplicate!??
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2011 06:29 AM - last edited on 08-04-2011 11:06 AM by Kevin_Paul
03-09-2011 06:29 AM - last edited on 08-04-2011 11:06 AM by Kevin_Paul
Re: Reason: get_pty: not enough ptys
Hello Victor,
First i started new thread on my name
http://h30499.www3.hp.com/t5/Networking/Reason-get-pty-not-enough-ptys/m-p/4762753#M47332
As my requirement was urgent in need of solution later again i was searching for more solution i seen this thread from Leonardo Parrino another thread .. but in that also my problem was not solved
Now we can continue with my current thread only, where still I am searching my solution .. Thank for your guidance.
Actually i am trying to open xterm from another xterm from humming bird Exceed GUI application . so a that that after changing this 3 kernel parameter to 1000 but still its stuck at 81 . so just want to know if anything else also need to change.
Now i have increased this parameter to 4000 so it may increase that xterm
kctune nstrtel nstrpty npty
Tunable Value Expression
npty (now) 1000 1000
(next boot) 4000 4000
nstrpty (now) 1000 1000
(next boot) 4000 4000
nstrtel (now) 1000 1000
(next boot) 4000 4000
Attached is the list of 62 users which are logging in . But when this reached 82 in in xterm hummingbird exceed it gives error as below:-
xterm: Error 32, errno 16: Device busy
Reason: get_pty: not enough ptys xterm &
regards
Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2011 02:02 AM
03-10-2011 02:02 AM
Re: Reason: get_pty: not enough ptys
Anybody has solution for my issue.
regards
Amit