> > -----Original Message----- > > From: John Arthur [mailto:[EMAIL PROTECTED] > > Sent: Thursday, March 11, 2004 5:27 PM > > To: Michael Vincent Pozon; [EMAIL PROTECTED] > > 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
