delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/12/17/21:58:17

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,TW_RX
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Date: Fri, 17 Dec 2010 21:58:02 -0500
Message-ID: <AANLkTikH7qbxGERG=Hn8P805OzhN4C_S2r5kTtBMxs-8@mail.gmail.com>
Subject: Maximum ptys
From: Rob B <spam AT robsnotebook DOT com>
To: cygwin AT cygwin DOT com
X-Identified-User: {963:box262.bluehost.com:stepbys2:robsnotebook.com} {sentby:smtp auth 209.85.212.43 authed with spam AT robsnotebook DOT com}
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi:

I seem to be hitting my maximum pty limit after running my cygwin
machine for about a week.  I open rxvt terminals and have an openssh
server.  rxvt on the machine and connections via ssh work fine after
reboot.  After about 1 week goes by I get messages about failure to
allocate a pty.

Once this happens, I can't open an rxvt at the machine anymore (get
error message: can't open pseudo-tty), or ssh in (get error message:
PTY allocation request failed on channel 0).

If I shut down an existing rxvt window on my machine, I can create one
more rxvt (or connect via ssh one more time), but then I hit the limit
again (get the failure messages) when I try to open another one.  I
don't have many windows open, but I think ptys may not be getting
freed when ssh connections shut down in a not so nice way.

In cygwin, how do I determine how many ptys are in use?
How do I determine which processes are using a pty?

I found the following link with Google, but the procedure does not
work for cygwin:

http://www.cyberciti.biz/tips/howto-linux-increase-pty-session.html

I run an openssh server, and sometimes the clients may shut down in a
not so nice way (due to lid closing on laptop client).  Maybe the ptys
are not getting freed when this happens?

I've tried searching this mailing list and could not find any emails
about this issue.  If they do exist, please send me the links with the
answers.

I'm using Windows 7, and uname -a shows:

CYGWIN_NT-6.1-WOW64 rob-server 1.7.6(0.230/5/3) 2010-08-16 16:06 i686 Cygwin

Please help.

Thanks,
Rob B

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019