<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem with PTY allocation in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-pty-allocation/m-p/3001517#M126540</link>
    <description>Hi Mike,&lt;BR /&gt;&lt;BR /&gt;It is not showing anything on /dev/ptmx.&lt;BR /&gt;&lt;BR /&gt;Animesh,&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;So, how is life in Singapore? Everybody is fine over there?&lt;BR /&gt;&lt;BR /&gt;Sandip</description>
    <pubDate>Thu, 19 Jun 2003 20:47:52 GMT</pubDate>
    <dc:creator>Sandip Ghosh</dc:creator>
    <dc:date>2003-06-19T20:47:52Z</dc:date>
    <item>
      <title>Problem with PTY allocation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-pty-allocation/m-p/3001504#M126527</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;We are facing a strange problem in our environment. We are running HP-UX 11.00 on N4000.&lt;BR /&gt;&lt;BR /&gt;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?&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for your replies........&lt;BR /&gt;&lt;BR /&gt;Sandip</description>
      <pubDate>Wed, 18 Jun 2003 20:31:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-pty-allocation/m-p/3001504#M126527</guid>
      <dc:creator>Sandip Ghosh</dc:creator>
      <dc:date>2003-06-18T20:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with PTY allocation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-pty-allocation/m-p/3001505#M126528</link>
      <description>increase the kernel parameter nstrpty to fit your needs.</description>
      <pubDate>Wed, 18 Jun 2003 20:42:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-pty-allocation/m-p/3001505#M126528</guid>
      <dc:creator>Paul Sperry</dc:creator>
      <dc:date>2003-06-18T20:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with PTY allocation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-pty-allocation/m-p/3001506#M126529</link>
      <description>Hi Sandip,&lt;BR /&gt;&lt;BR /&gt;Is it happening for rlogin only or even telnet is affected?.&lt;BR /&gt;&lt;BR /&gt;What is the current patch level on the system?. Try installing reasonbly latest patch bundles. &lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Wed, 18 Jun 2003 20:44:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-pty-allocation/m-p/3001506#M126529</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2003-06-18T20:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with PTY allocation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-pty-allocation/m-p/3001507#M126530</link>
      <description>If you increase the kernel parameters also it will not solve the problem but it will deffered the problem. But it will again re-appear when it will reach that particular no.&lt;BR /&gt;&lt;BR /&gt;And &lt;BR /&gt;Sri,&lt;BR /&gt;The Patch level is Sep 2002 Quality Pack Bundle.&lt;BR /&gt;It is not happening with telnet. It is happening with rlogin only.&lt;BR /&gt;&lt;BR /&gt;Sandip&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Jun 2003 20:49:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-pty-allocation/m-p/3001507#M126530</guid>
      <dc:creator>Sandip Ghosh</dc:creator>
      <dc:date>2003-06-18T20:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with PTY allocation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-pty-allocation/m-p/3001508#M126531</link>
      <description>Take a look here:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x39b1854994d9d4118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x39b1854994d9d4118fef0090279cd0f9,00.html&lt;/A&gt;</description>
      <pubDate>Wed, 18 Jun 2003 20:52:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-pty-allocation/m-p/3001508#M126531</guid>
      <dc:creator>Paul Sperry</dc:creator>
      <dc:date>2003-06-18T20:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with PTY allocation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-pty-allocation/m-p/3001509#M126532</link>
      <description>Thanks Paul for replying.&lt;BR /&gt;&lt;BR /&gt;But I think you have not understood the problem.&lt;BR /&gt;&lt;BR /&gt;Sandip</description>
      <pubDate>Wed, 18 Jun 2003 20:55:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-pty-allocation/m-p/3001509#M126532</guid>
      <dc:creator>Sandip Ghosh</dc:creator>
      <dc:date>2003-06-18T20:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with PTY allocation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-pty-allocation/m-p/3001510#M126533</link>
      <description>Do a netstat -a.  Do you have a lot of connections in the FIN_WAIT_2 state?  If so, then the remote sessions may not be properly closing the connections, and you may need to set the tcp_fin_wait_2_timeout value using ndd.</description>
      <pubDate>Wed, 18 Jun 2003 21:01:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-pty-allocation/m-p/3001510#M126533</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2003-06-18T21:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with PTY allocation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-pty-allocation/m-p/3001511#M126534</link>
      <description>It is not clear how you determined that the stream ptys were not released.  Perhaps there&lt;BR /&gt;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-&lt;BR /&gt;&lt;BR /&gt;fuser /dev/ptmx /dev/pts/* 2&amp;gt;&amp;amp;1 | grep 'o$'&lt;BR /&gt;&lt;BR /&gt;  You may find that more and more ptys are being held open by processes.</description>
      <pubDate>Wed, 18 Jun 2003 21:11:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-pty-allocation/m-p/3001511#M126534</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2003-06-18T21:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with PTY allocation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-pty-allocation/m-p/3001512#M126535</link>
      <description>I am having around 43 FIN_WAIT in my system.&lt;BR /&gt;&lt;BR /&gt;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?&lt;BR /&gt;&lt;BR /&gt;Sandip</description>
      <pubDate>Wed, 18 Jun 2003 21:13:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-pty-allocation/m-p/3001512#M126535</guid>
      <dc:creator>Sandip Ghosh</dc:creator>
      <dc:date>2003-06-18T21:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with PTY allocation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-pty-allocation/m-p/3001513#M126536</link>
      <description>Changing the tcp_fin_wait_2_timeout on the fly is unlikely to harm anything.  The fin_wait state means that your system is simply waiting for an acknowledgement that the session is indeed over and that the connection should be closed.&lt;BR /&gt;&lt;BR /&gt;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.</description>
      <pubDate>Wed, 18 Jun 2003 21:23:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-pty-allocation/m-p/3001513#M126536</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2003-06-18T21:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with PTY allocation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-pty-allocation/m-p/3001514#M126537</link>
      <description>Mike,&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Sandip</description>
      <pubDate>Wed, 18 Jun 2003 21:24:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-pty-allocation/m-p/3001514#M126537</guid>
      <dc:creator>Sandip Ghosh</dc:creator>
      <dc:date>2003-06-18T21:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with PTY allocation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-pty-allocation/m-p/3001515#M126538</link>
      <description>What does fuser say about /dev/ptmx ?&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;That would fit the FINWAIT problem.</description>
      <pubDate>Wed, 18 Jun 2003 22:41:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-pty-allocation/m-p/3001515#M126538</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2003-06-18T22:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with PTY allocation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-pty-allocation/m-p/3001516#M126539</link>
      <description>Hi Sandip,&lt;BR /&gt;If you have glance then&lt;BR /&gt;#glance -t will show the used npty numbers.&lt;BR /&gt;You can also donload lsof to monitor the process being used.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Thu, 19 Jun 2003 04:57:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-pty-allocation/m-p/3001516#M126539</guid>
      <dc:creator>Animesh Chakraborty</dc:creator>
      <dc:date>2003-06-19T04:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with PTY allocation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-pty-allocation/m-p/3001517#M126540</link>
      <description>Hi Mike,&lt;BR /&gt;&lt;BR /&gt;It is not showing anything on /dev/ptmx.&lt;BR /&gt;&lt;BR /&gt;Animesh,&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;So, how is life in Singapore? Everybody is fine over there?&lt;BR /&gt;&lt;BR /&gt;Sandip</description>
      <pubDate>Thu, 19 Jun 2003 20:47:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-pty-allocation/m-p/3001517#M126540</guid>
      <dc:creator>Sandip Ghosh</dc:creator>
      <dc:date>2003-06-19T20:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with PTY allocation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-pty-allocation/m-p/3001518#M126541</link>
      <description>| If you look at the /dev/pts directory you will see&lt;BR /&gt;| that some of the devices are owned by root:sys and&lt;BR /&gt;| some of them are owned by the users.  The pty's&lt;BR /&gt;| those are not used those will show you as&lt;BR /&gt;| root:sys, others are in use.  In my system I could&lt;BR /&gt;| see that there are around 57/58 devices are there&lt;BR /&gt;| which is in use by some user.  But when I am&lt;BR /&gt;| giving ps command I couldn't find those pty's.&lt;BR /&gt;&lt;BR /&gt;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.)&lt;BR /&gt;&lt;BR /&gt;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.</description>
      <pubDate>Mon, 23 Jun 2003 14:47:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-pty-allocation/m-p/3001518#M126541</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2003-06-23T14:47:16Z</dc:date>
    </item>
  </channel>
</rss>

