[squid-users] RE: Out of file descriptor

From: Narula, Vaibhav <vnarula@dont-contact.us>
Date: Mon, 19 Jun 2006 18:46:20 -0400

Hi
Run this command

cat /proc/sys/fs/file-max

check the value
For Linux Users

root# echo 1024 > /proc/sys/fs/file-maxFinally, before compiling or
running Squid, execute this shell command to set the process limit equal
to the kernel limit:

root# ulimit -Hn 1024 fter you have set the limit in this manner, you'll
need to reconfigure, recompile, and reinstall Squid. Also note that
these two commands do not permanently set the limit. They must be
executed each time your system boots. You'll want to add them to your
system startup scripts.

For NetBSD/OpenBSD/FreeBSD Users
On BSD-based systems, you'll need to compile a new kernel. The kernel
configuration file lives in a directory such as /usr/src/sys/i386/conf
or /usr/src/sys/arch/i386/conf. There you'll find a file, possibly named
GENERIC, to which you should add a line like this:

options MAXFILES=8192For OpenBSD, use option instead of options.
Reboot your system after you've finished configuring, compiling, and
installing your new kernel. Then, reconfigure, recompile, and reinstall
Squid.

For Solaris Users
Add this line to your /etc/system file:

set rlim_fd_max = 1024Then, reboot the system, reconfigure, recompile,
and reinstall Squid.

With Regards

Vaibhav Narula

-----Original Message-----
From: Wennie V. Lagmay [mailto:wlagmay@yanbulink.net]
Sent: Sunday, June 18, 2006 5:23 PM
To: squid users
Cc: wennie@yanbulink.net
Subject: Out of file descriptor

Im having a problem "your cache is running out of file descriptor" Im
using
squid2.5-STABLE13 on Fedora Core 4 64 bit. Can any body help me on this

thanks,

Wennie
Received on Mon Jun 19 2006 - 16:46:51 MDT

This archive was generated by hypermail pre-2.1.9 : Sat Jul 01 2006 - 12:00:01 MDT