Re: [squid-users] WARNING! Your cache is running out of filedescriptors (on RH 9.0 Squid2.5.Stable5)

From: Awie <awie@dont-contact.us>
Date: Sat, 13 Mar 2004 16:00:01 +0800

> > -----Original Message-----
> > From: John Arthur [mailto:lists@davey.net.au]
> > Sent: Thursday, March 11, 2004 5:27 PM
> > To: Michael Vincent Pozon; squid-users@squid-cache.org
> > Subject: RE: [squid-users] WARNING! Your cache is running out of
> > filedescriptors (on RH 9.0 Squid2.5.Stable5)
> >
> > I sent this to the last a few days ago but it did not show appear.
> > A quick rundown on increasing the number of file descriptors
> > -------
> >
> >
> > ulimit -SHn 2048
> > grep -R __FD_SETSIZE /usr/include
> > vi /usr/include/bits/typesizes.h
> > and change
> > #define __FD_SETSIZE 1024
> >
> > to
> >
> > #define __FD_SETSIZE 2048
> >
> > rebuild squid from scratch (configure, make etc......)
> >
> > put [ulimit -SHn 2048] in your squid start up script

Where should I put the command "ulimit -SHn 2048"? In rc.local or
/root/.bashrc?

I tried to put in rc.local, but my RH9 could not boot with the such setting
and still display 1024 of open file when I typed ulimit -a. But cache.log
reported there is 2048 of file descriptors.

If I put in /root/.bashrc, the RH9 recognize open file 2048 but cache.log
reported only 1024 of file descriptors.

Thx & Rgds,

 Awie
Received on Sat Mar 13 2004 - 00:58:26 MST

This archive was generated by hypermail pre-2.1.9 : Thu Apr 01 2004 - 12:00:02 MST