Re: [squid-users] File Descriptors

From: <balkrishna_at_subisu.net.np>
Date: Tue, 6 Jul 2010 11:22:56 +0545 (NPT)

Mr ED,

Changing the FD value from limits.conf and including the "ulimit -HSn
4096" in squid daemon does not change the default squid FD limit.

This needs to be done in compile time.
Recompile your squid and run "ulimit -HSn 4096" after compile and before
make install. That will work.

Regards,
--------
Bal

>
> Hello,
>
> Got a odd problem with file descriptors im hoping you guys could help me
> out
> with?
>
> Background
>
> I'm running CentOS 5.5 and squid 3.0 Stable 5.
> The system is configured with 4096 file descriptors with the following :
>
> /etc/security/limits.conf
> * - nofile 4096
> /etc/sysctl.conf
> fs.file-max = 4096
>
> Also /etc/init.d/squid has ulimit -HSn 4096 at the start.
>
> Problem
>
> Running a ulimit -n on the box does indeed show 4096 connectors but squid
> states it is using 1024 despite what is said above. I noticed this because
> im starting to get warnings in the logs about file descriptors...
>
> Any help greatly appreciated.
>
> Thanks
>
> Ed
>
> Ed
> --
> View this message in context:
> http://squid-web-proxy-cache.1019090.n4.nabble.com/File-Descriptors-tp2278923p2278923.html
> Sent from the Squid - Users mailing list archive at Nabble.com.
>
Received on Tue Jul 06 2010 - 05:38:09 MDT

This archive was generated by hypermail 2.2.0 : Wed Jul 07 2010 - 12:00:13 MDT