Re: [squid-users] Out of file descriptor

From: Emilio Casbas <ecasbas@dont-contact.us>
Date: Tue, 20 Jun 2006 08:29:24 +0200

Narula, Vaibhav wrote:
> 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.
>
you can have a custom RunCache squid.

% cat /usr/local/squid/bin/RunSquid_custom
# Filedescriptors fixed
ulimit -HSn 2048

# squid execute
su - squid /usr/local/etc2/squid/bin/RunCache &

Thanks
Emilio C.
> 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
>
> With Regards
>
> Vaibhav Narula
>
>
>
>
> -----Original Message-----
> From: Craig Home [mailto:craig_home@hotmail.com]
> Sent: Monday, June 19, 2006 3:23 PM
> To: ronny@spacenet.co.ug; wlagmay@yanbulink.net
> Cc: squid-users@squid-cache.org; wennie@yanbulink.net
> Subject: Re: [squid-users] Out of file descriptor
>
> Can anyone tell me how to unsubscribe from this list, I've tried the
> usual
> emails with unsubscribe in the header and am still getting these
> messages I
> don't want
>
> Please help
>
> Regards
>
> Craig
>
>
>> Have a look @ http://www.squid-cache.org/Doc/FAQ/FAQ-11.html
>> Yos
>> Ronny
>>
>> *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
>>
> -*-*-*-*-*-*-*-*-*-*-*-*-*-
>
>> If I have seen further it is by standing on the shoulders of giants.
>> --Isaac Newton
>> -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
>>
> *-*-*-*-*-*-*-*-*-*-*-*-*-*
>
>>
>>
>>
>> Wennie V. Lagmay wrote:
>>
>>> 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 Tue Jun 20 2006 - 00:30:04 MDT

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