Re: Out of File-descriptors!?!?

From: Jonathan Larmour <JLarmour@dont-contact.us>
Date: Mon, 09 Dec 1996 18:28:23 +0000

At 18:28 09/12/96 +0100, Swen Mager wrote:
>Hello everybody,
>
>today happened a really discourageing thing to my Squid...
>I got an error message:
>
>:The following error was encountered:
>:
>: Out of file descriptors

>The first thing i did was using the cachemgr-interface with the option file
>descriptor-usage selected.
>The server response showed me that all of 256 file descriptors are in use.

Well, you're out of descriptors then :-).

>I'm using Linux Kernel 2.0.24 with Squid/1.1.beta20.
>
>cat /proc/sys/kernel/file-max shows me that are 1024 file-descriptors are
>available!?!?

That is the maximum on the machine, whereas there is a limit of 256 per
process. If you want to hike it up, look in /usr/include/linux/fs.h and
/usr/include/linux/limits.h and change NR_OPEN to the value you want, but
more means more memory. Read the comments in fs.h as well, e.g. if you want
>1024 fds!

Jonathan L.
Origin UK,323 Cambridge Science Park,Cambridge,England. Tel: +44(1223)423355
------[ Do not think that every sad-eyed woman has loved and lost... ]------
----------------------[ she may have got him. -Anon ]-----------------------
Help fight spam! http://www.vix.com/spam These opinions are all my own fault
Received on Mon Dec 09 1996 - 10:38:30 MST

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