- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem with PTY allocation
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
06-18-2003 01:31 PM
06-18-2003 01:31 PM
Problem with PTY allocation
We are facing a strange problem in our environment. We are running HP-UX 11.00 on N4000.
Whenever we are doing rlogin to the system it is allocating the ptys to rlogin but when the user is logging out the kernel is not releasing the ptys. So, after a certain time we are running out of the ptys. And the system is giving the message "Unable to allocate pty". Have you guys faced this kind of problem before?
For your information our npty and nstrpty is set to 60 (default). We know that we need to increase the npty, nstrpty and nstrtel but my question is, if we increase also, some time will come when we will be again going out of resources.
Thanks in advance for your replies........
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 01:42 PM
06-18-2003 01:42 PM
Re: Problem with PTY allocation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 01:44 PM
06-18-2003 01:44 PM
Re: Problem with PTY allocation
Is it happening for rlogin only or even telnet is affected?.
What is the current patch level on the system?. Try installing reasonbly latest patch bundles.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 01:49 PM
06-18-2003 01:49 PM
Re: Problem with PTY allocation
And
Sri,
The Patch level is Sep 2002 Quality Pack Bundle.
It is not happening with telnet. It is happening with rlogin only.
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 01:52 PM
06-18-2003 01:52 PM
Re: Problem with PTY allocation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 01:55 PM
06-18-2003 01:55 PM
Re: Problem with PTY allocation
But I think you have not understood the problem.
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 02:01 PM
06-18-2003 02:01 PM
Re: Problem with PTY allocation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 02:11 PM
06-18-2003 02:11 PM
Re: Problem with PTY allocation
is some group of processes that is opening more and more stream ptys. You could examine what processes are using ptys by running this command-
fuser /dev/ptmx /dev/pts/* 2>&1 | grep 'o$'
You may find that more and more ptys are being held open by processes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 02:13 PM
06-18-2003 02:13 PM
Re: Problem with PTY allocation
I have also read abt the FIN_WAIT in a previous thread. I need to know that if I change the tcp_fin_wait value on the fly, what are the possible things could get affected?
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 02:23 PM
06-18-2003 02:23 PM
Re: Problem with PTY allocation
If all of your FIN_WAIT state connections are due to old rlogin connections not being cleared and your npty and nstrpty settings are 60, it's pretty clear as to why you're getting the "unable to allocate" messages.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 02:24 PM
06-18-2003 02:24 PM
Re: Problem with PTY allocation
If you look at the /dev/pts directory you will see that some of the devices are owned by root:sys and some of them are owned by the users. The pty's those are not used those will show you as root:sys, others are in use. In my system I could see that there are around 57/58 devices are there which is in use by some user. But when I am giving ps command I couldn't find those pty's.
By the fuser command I couldn't find any of them in use. I have looked through "last|grep still" command also. but I couldn't found any of them.
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 03:41 PM
06-18-2003 03:41 PM
Re: Problem with PTY allocation
If there are rlogind or other master side processes holding /dev/ptmx open, then they could be keep the slave sides of the ptys busy even though no process has the slave side open.
That would fit the FINWAIT problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 09:57 PM
06-18-2003 09:57 PM
Re: Problem with PTY allocation
If you have glance then
#glance -t will show the used npty numbers.
You can also donload lsof to monitor the process being used.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2003 01:47 PM
06-19-2003 01:47 PM
Re: Problem with PTY allocation
It is not showing anything on /dev/ptmx.
Animesh,
It is showing available=60 and used=2. HP is also looking at the problem. The problem is that once it is allocating one terminal it is not releasing from the kernel when the users are getting out of the system.
So, how is life in Singapore? Everybody is fine over there?
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2003 07:47 AM
06-23-2003 07:47 AM
Re: Problem with PTY allocation
| that some of the devices are owned by root:sys and
| some of them are owned by the users. The pty's
| those are not used those will show you as
| root:sys, others are in use. In my system I could
| see that there are around 57/58 devices are there
| which is in use by some user. But when I am
| giving ps command I couldn't find those pty's.
The ownership of /dev/pts/* files does not indicate whether they are currently in use. The ownership is often set when a stream pty starts to be used. There is no convention of changing the ownership when the pty is no longer in use. (The grantpt() function runs the /usr/lbin/chgpt program to give ownership to the current user of the pty.)
Perhaps you are looking at the system when the problem is not occuring at all. You may have to wait for an "Unable to allocate pty" message before you run the fuser command to look for the cause of the trouble.