Re: [squid-users] 2003/08/13 08:20:21| httpAccept: FD 15: accept failure: (24) Too many open files

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Tue, 19 Aug 2003 00:44:21 +0200

On Monday 18 August 2003 20.50, Brian Hechinger wrote:
> On Mon, Aug 18, 2003 at 08:47:14PM +0200, Henrik Nordstrom wrote:
> > > brian@ghsl011ptlge$ sudo pfiles 6681
> > > 6681: (squid) -D
> > > Current rlimit: 512 file descriptors
> >
> > Seem to me you did not set the hard ulimit before you started
> > Squid.
>
> i set the hard limit before i start squid. i set the hard limit
> when i built squid. what could i *possibly* be missing?

You need to set the soft limit before building Squid (which you seem
to have done as configure found the new limit) and then the hard
limit before you start Squid.

Squid automatically sets the soft limit equal to the hard limit on
startup in order to gain the highest allowed limit. However, root is
allowed to artificially raise his soft limit above his hard limit
which is counter-productive when using Squid.

Regards
Henrik
Received on Mon Aug 18 2003 - 16:45:50 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:18:58 MST