Re: running out of filedescriptors

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 29 Jul 1999 21:57:13 +0200

paulp@mozcom.com wrote:
>
> Hi all
> im running squid-2.2 stable 2 on redhat 6.0 (kernel 2.2.10-ac2) on a PII
> 266 512Mb. im still running out of filedescriptors descpite the fact that
> i added the following lines on /etc/rc.d/rc.local

1. Edit /usr/include/bit/types.h to have __FD_SETSIZE defined to at
least the amount of filedescriptors you need.

2. As root, run "ulimit -HSn NNNN" where NNNN is at least the numbers of
filedescriptors you need to support.

3. From the same shell as you ran the ulimit command, go to you Squid
source directory, "make clean", "./configure ....", "make install". If
configure fails to detect the new limit then you have either not edited
types.h, or failed to run the ulimit command.

4. Edit the script you use to start Squid to make sure "ulimit -HSn
NNNN" is run before you start Squid.

5. Verify in cache.log or cachemgr that Squid reports the new
filedescriptor limit.

--
Henrik Nordstrom
Spare time Squid hacker
Received on Thu Jul 29 1999 - 14:26:00 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:47:37 MST