pts/# ever increasing and never going away.
Hi,
I have read up about pts and my understanding is that they are psuedo terminals for when logging in via ssh. Now i am logging into my server via ssh and did a "who -a" and saw that there were a lot of pts's - at the time about 75. Then i logged out and back in again, I was assigned pts/76 and pts/75 still existed. In fact I could see pts's going back as far as when I has started logging into the server using ssh. So my questions are.... 1 - Is this normal? 2 - If not how do I clean this up and sort the problem? 3 - If I dont change anything will a new pts keep being created until I run out of memory or something else goes wrong? Many thanks. s0 |
Re: pts/# ever increasing and never going away.
Quote:
Slackware boxes or the debian machines at work Quote:
that supposedly hold the pty's. Quote:
of pty's that the kernel was compiled with. Linux' default is 256. Once that's reached you won't be able to open any more... Cheers, Tink |
What do you mean that pts/75 still existed? You mean there was still a device entry for it in /dev/pts? That shouldn't be happening. There's an option in the kernel, I think, to not wrap around pty numbers (at least this happens on one machine I have after tinkering with some pty options in the kernel config), but old pseudo terminals that aren't in use are always deleted from /dev/pts.
|
Many thanks for the replies.
Sorry should have explained myself better. The OS is fedora. When I log in via ssh and do "who -a" there are a number of pts's with say the highest being pts/76 which is where I am logged in. i.e. "who -a" output (shortened) Code:
Jul 16 02:19 176 id=si term=0 exit=0 In /dev/pts there is only the one entry - which is my current pts. Which is adding to my confusion now :) because I guess that means those other pts's dont really exist as there would be an entry in /dev/pts (am i correct? still learning :) ) so why does "who" still show them? s0 |
All times are GMT -5. The time now is 04:01 AM. |