From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079036515888.tru64-unix-managers.marc@archive.invalid> From: Eskil.Swahn () LDC ! lu ! se Date: Wed, 24 Feb 1999 09:56:22 +0000 To: tru64-unix-managers Subject: SUMMARY: Too many open files, Ulimit and ssh.. X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079036515888 I had a problem which proved to be dependent of two factors. My original concern was that I got an error message about too many open files. Thanks to Viktor Holmberg and Tom Francini for pointing me in the direction of the 'maxuser' parameter as well as 'open-max-soft' and open-max-hard'. However the main problem proved to be ssh instead since my parameters were set high enough (anybody btw who knows why you shouldn't set them high?? do you use much memory unnecessary or what?). However when I started ssh from a script in /sbin/init.d/ I didn't get the same high values as when I used telnet to access the machine since telnet was started from inetd and child processes get access to the same ulimit-values as their parent processes. So to solve this I added 'ulimit -n 4096' to my sshd-script to increase the max number of file descriptors when you logged into the machine through ssh too. However some part of the problem remains since some users with tcsh doesn't get this increase (zsh works).. /Eskil +-----------------------------------------------------------------------+ | Eskil Swahn | | Eskil.Swahn@LDC.lu.se tfn +46 46 222 4986 | | | | | +-----------------------------------------------------------------------+