Secret compile time gotcha - your compile needs to have the max fd set
higher during the configure, make, and compile, or it doesn't actually
end up able to use the higher maxfd limit.
I do a script with roughly "ulimit -HSn 32768; ./configure (long
options string included from a file)"
(On CentOS 5.1-5.3 build servers, and presumably 5.4; the same should
apply to other Linux + Gnu configure/make environments)
-george
On Tue, Feb 9, 2010 at 3:29 PM, Landy Landy <landysaccount_at_yahoo.com> wrote:
> I don't know what to do with my current squid, I even upgraded to 3.0.STABLE21 but, the problem persist every three days:
>
> /usr/local/squid/sbin/squid -v
> Squid Cache: Version 3.0.STABLE21
> configure options: �'--prefix=/usr/local/squid' '--sysconfdir=/etc/squid' '--enable-delay-pools' '--enable-kill-parent-hack' '--disable-htcp' '--enable-default-err-language=Spanish' '--enable-linux-netfilter' '--disable-ident-lookups' '--localstatedir=/var/log/squid3.1' '--enable-stacktraces' '--with-default-user=proxy' '--with-large-files' '--enable-icap-client' '--enable-async-io' '--enable-storeio=aufs' '--enable-removal-policies=heap,lru' '--with-maxfd=32768'
>
> I built with --with-maxfd=32768 option but, when squid is started it says is working with only 1024 filedescriptor.
>
> I even added the following to the squid.conf:
>
> max_open_disk_fds 0
>
> But it hasn't resolve anything. I'm using squid on Debian Lenny. I don't know what to do. Here's part of cache.log:
>
> 2010/02/09 17:14:29| ctx: exit level �0
> 2010/02/09 17:14:29| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:16:50| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:18:45| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:20:01| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:20:17| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:20:38| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:21:33| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:22:26| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:22:41| clientParseRequestMethod: Unsupported method attempted by 172.16.100.83: This is not a bug. see squid.conf extension_methods
> 2010/02/09 17:22:41| clientParseRequestMethod: Unsupported method in request '_u_@________.#C5U_________e__:___{_Q_"___L_____________r'
> 2010/02/09 17:22:41| clientProcessRequest: Invalid Request
> 2010/02/09 17:22:43| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:22:59| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:23:16| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:23:36| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:23:52| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:24:19| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:24:23| clientNatLookup: NF getsockopt(SO_ORIGINAL_DST) failed: (2) No such file or directory
> 2010/02/09 17:24:38| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:24:41| clientParseRequestMethod: Unsupported method attempted by 172.16.100.83: This is not a bug. see squid.conf extension_methods
> 2010/02/09 17:24:41| clientParseRequestMethod: Unsupported method in request '_E__&_b_____%_w__Pw__M_}z________%__I____@_T__Q___d__?_G'
> 2010/02/09 17:24:41| clientProcessRequest: Invalid Request
> 2010/02/09 17:24:54| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:25:12| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:25:12| clientParseRequestMethod: Unsupported method attempted by 172.16.100.83: This is not a bug. see squid.conf extension_methods
> 2010/02/09 17:25:12| clientParseRequestMethod: Unsupported method in request '_Z___|G3_7^_%____U_r_1____.h__gd__8C'
> 2010/02/09 17:25:12| clientProcessRequest: Invalid Request
> 2010/02/09 17:25:29| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:25:41| clientNatLookup: NF getsockopt(SO_ORIGINAL_DST) failed: (2) No such file or directory
> 2010/02/09 17:25:45| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:26:01| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:26:18| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:26:34| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:26:59| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:27:26| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:27:29| clientNatLookup: NF getsockopt(SO_ORIGINAL_DST) failed: (2) No such file or directory
> 2010/02/09 17:27:56| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:28:12| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:28:35| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:28:35| clientNatLookup: NF getsockopt(SO_ORIGINAL_DST) failed: (2) No such file or directory
> 2010/02/09 17:29:25| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:29:37| clientNatLookup: NF getsockopt(SO_ORIGINAL_DST) failed: (2) No such file or directory
> 2010/02/09 17:29:43| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:30:25| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:30:41| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:30:41| clientNatLookup: NF getsockopt(SO_ORIGINAL_DST) failed: (2) No such file or directory
> 2010/02/09 17:30:57| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:31:15| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:31:29| clientParseRequestMethod: Unsupported method attempted by 172.16.100.83: This is not a bug. see squid.conf extension_methods
> 2010/02/09 17:31:29| clientParseRequestMethod: Unsupported method in request '_5I_A_+___=_`_______p_#_______M_g_Z__3_(_____r____ay[`____W['
> 2010/02/09 17:31:29| clientProcessRequest: Invalid Request
> 2010/02/09 17:31:36| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:31:42| clientNatLookup: NF getsockopt(SO_ORIGINAL_DST) failed: (2) No such file or directory
> 2010/02/09 17:32:01| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:32:24| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:32:59| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:33:03| clientNatLookup: NF getsockopt(SO_ORIGINAL_DST) failed: (2) No such file or directory
> 2010/02/09 17:33:19| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:33:19| clientParseRequestMethod: Unsupported method attempted by 172.16.100.83: This is not a bug. see squid.conf extension_methods
> 2010/02/09 17:33:19| clientParseRequestMethod: Unsupported method in request '________:__A_uW_*_____oM_`;______________j__G________z'
> 2010/02/09 17:33:19| clientProcessRequest: Invalid Request
> 2010/02/09 17:33:20| clientParseRequestMethod: Unsupported method attempted by 172.16.100.83: This is not a bug. see squid.conf extension_methods
> 2010/02/09 17:33:20| clientParseRequestMethod: Unsupported method in request '_____l_______(B__gbE_6(M_FN___R____a7)________$____Y__!____;q'
> 2010/02/09 17:33:20| clientProcessRequest: Invalid Request
> 2010/02/09 17:35:11| clientNatLookup: NF getsockopt(SO_ORIGINAL_DST) failed: (2) No such file or directory
> 2010/02/09 17:35:11| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:35:31| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:36:53| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:36:53| clientNatLookup: NF getsockopt(SO_ORIGINAL_DST) failed: (2) No such file or directory
> 2010/02/09 17:39:42| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:39:42| clientNatLookup: NF getsockopt(SO_ORIGINAL_DST) failed: (2) No such file or directory
> 2010/02/09 17:51:53| clientNatLookup: NF getsockopt(SO_ORIGINAL_DST) failed: (2) No such file or directory
> 2010/02/09 17:51:53| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:55:33| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 17:55:33| clientNatLookup: NF getsockopt(SO_ORIGINAL_DST) failed: (2) No such file or directory
> 2010/02/09 18:07:11| WARNING: Closing client 172.16.100.59 connection due to lifetime timeout
> 2010/02/09 18:07:11| � �http://207.46.124.167/gateway/gateway.dll?SessionID=1116141591.166024643
> 2010/02/09 18:07:11| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 18:07:11| clientNatLookup: NF getsockopt(SO_ORIGINAL_DST) failed: (2) No such file or directory
> 2010/02/09 18:07:48| WARNING: Closing client 172.16.100.59 connection due to lifetime timeout
> 2010/02/09 18:07:48| � �http://65.54.48.73/gateway/gateway.dll?SessionID=2000755641.1814461333
> 2010/02/09 18:07:48| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 18:09:20| WARNING: Closing client 172.16.100.59 connection due to lifetime timeout
> 2010/02/09 18:09:20| � �http://65.54.50.155/gateway/gateway.dll?SessionID=847035839.1893599263
> 2010/02/09 18:09:20| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 18:09:20| clientNatLookup: NF getsockopt(SO_ORIGINAL_DST) failed: (2) No such file or directory
> 2010/02/09 18:11:07| WARNING: Closing client 172.16.100.59 connection due to lifetime timeout
> 2010/02/09 18:11:07| � �http://65.54.172.52/gateway/gateway.dll?SessionID=1169589683.1509835191
> 2010/02/09 18:11:07| client_side.cc(2843) WARNING! Your cache is running out of filedescriptors
> 2010/02/09 18:11:07| clientNatLookup: NF getsockopt(SO_ORIGINAL_DST) failed: (2) No such file or directory
>
>
>
>
>
>
-- -george william herbert george.herbert_at_gmail.comReceived on Wed Feb 10 2010 - 00:00:34 MST
This archive was generated by hypermail 2.2.0 : Wed Feb 10 2010 - 12:00:05 MST