[Bug 580590] Re: Squid no longer uses $SQUID_MAXFD
Andrew Glen-Young
580590 at bugs.launchpad.net
Thu Feb 10 18:19:42 UTC 2011
Steps to reproduce
==================
Initial Install and Tests
-------------------------
$ sudo apt-get install squid squid-client
$ grep MAX /etc/default/squid·
SQUID_MAXFD=1024
$ sudo status squid
squid start/running, process 2671
$ squidclient -p 3128 -l 127.0.0.1 -h 127.0.0.1 mgr:info | grep 'Maximum number'
Maximum number of file descriptors: 1024
Change SQUID_MAXFD and try again
--------------------------------
$ sudo sed -i 's/SQUID_MAXFD=1024/SQUID_MAXFD=65536/' /etc/default/squid
$ grep MAX /etc/default/squid·
SQUID_MAXFD=65536
$ sudo stop squid
squid stop/waiting
$ sudo start squid
squid start/running, process 2758
$ squidclient -p 3128 -l 127.0.0.1 -h 127.0.0.1 mgr:info | grep 'Maximum number'
Maximum number of file descriptors: 1024
Apply the patch (attached) and retry:
-------------------------------------
$ sudo vi /etc/init/squid.conf
[ patch ]
$ sudo status squid
squid stop/waiting
$ sudo start squid
squid start/running, process 2794
$ squidclient -p 3128 -l 127.0.0.1 -h 127.0.0.1 mgr:info | grep 'Maximum number'
Maximum number of file descriptors: 65536
That's more like it!
Note: LP#573853 was affecting me as well so I'm also running squid on
Lucid with this patch applied as well.
** Patch added: "squid.upstart.patch"
https://bugs.launchpad.net/ubuntu/+source/squid/+bug/580590/+attachment/1841848/+files/squid.upstart.patch
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to squid in ubuntu.
https://bugs.launchpad.net/bugs/580590
Title:
Squid no longer uses $SQUID_MAXFD
More information about the Ubuntu-server-bugs
mailing list