hi,
I have put the 'ulimit -HSn 8192' command into the RunCache script
and everything works fine.
I understood that the the ulimit command has an effect on the shell where
it was started from only. maybe the /etc/rc.d/rc.local file is executed at
boot time, _before_ your login shell is invoked.
so, if you want your 8192 fds in general, you should put that command
into '/etc/profile' (for bash) or the '.rc'-file for your shell, so it is
run each
time a shell is invoked.
Best regards
Torsten Lange
J.D.F.Palmer@Swansea.ac.uk on 20.11.2001 11:01:23
To: squid-users@squid-cache.org
cc:
Subject: [squid-users] Setting ulimit for Filedescriptors.
--------------------------------------------------------------------------
Hi,
I have squid running with 8192 filesdescriptors, however when squid runs
from boot up it reverts back to 1024.
I have established that this must be something to do with the ulimit -HSn
8192 command not being ran correctly.
I have these two lines in my /etc/rc.d/rc.local file...
ulimit -HSn 8192
/usr/local/squid/bin -s
If I stop squid, run the ulimit command then restart squid from the console
it's fine. I guess this is something to do with the ulimit command
belonging to the session/console that squid is running in.
Does anyone have a way round this?
Received on Tue Nov 20 2001 - 03:12:08 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:04:20 MST