told you there's no limit set at all anywhere, set it again won't solve it. it's squid that don't want to use more than 1024 unless told so explicitly in the config. On Fri, Aug 17, 2012 at 2:04 AM, Jenny Lee <bodycare_5@xxxxxxxx> wrote: > > So put it before that, then: > ulimit -HSn 65536; ./squid -f squid.conf > Jenny > ---------------------------------------- >> From: sunyucong@xxxxxxxxx >> Date: Fri, 17 Aug 2012 01:56:59 -0700 >> Subject: Re: Re: 3.2.1 file descriptor is locked to 1024? >> To: bodycare_5@xxxxxxxx >> CC: squid-users@xxxxxxxxxxxxxxx >> >> No, I just launch it with ./squid -f squid.conf , no script. >> >> I think this is a problem with default config , it might be >> initialized wrong in the default config. >> >> On Fri, Aug 17, 2012 at 1:09 AM, Jenny Lee <bodycare_5@xxxxxxxx> wrote: >> > >> > In your /etc/rc.d/init.d/squid file, or whatever script is starting squid, put: >> > ulimit -HSn 65536 >> > Jenny >> >> From: sunyucong@xxxxxxxxx >> >> Date: Thu, 16 Aug 2012 20:03:05 -0700 >> >> To: squid-users@xxxxxxxxxxxxxxx >> >> Subject: Re: 3.2.1 file descriptor is locked to 1024? >> >> >> >> I found that if I include >> >> max_filedescriptors 16384 in the config, it will actually use the 16384 fds >> >> >> >> if I don't have this line, then it will use 1024, however the document >> >> and source code I can find doesn't say any thing like 1024 at all, >> >> >> >> what might be the reason? >> >> >> >> On Thu, Aug 16, 2012 at 7:31 PM, Yucong Sun (叶雨飞) <sunyucong@xxxxxxxxx> wrote: >> >> > Here's what I get from mgr:info >> >> > >> >> > File descriptor usage for squid: >> >> > Maximum number of file descriptors: 1024 >> >> > Largest file desc currently in use: 755 >> >> > Number of file desc currently in use: 692 >> >> > Files queued for open: 0 >> >> > Available number of file descriptors: 332 >> >> > Reserved number of file descriptors: 100 >> >> > Store Disk files open: 0 >> >> > >> >> > >> >> > and here's the squid -v output >> >> > >> >> > Squid Cache: Version 3.2.1 >> >> > configure options: '--disable-maintainer-mode' >> >> > '--disable-dependency-tracking' '--disable-silent-rules' >> >> > '--enable-inline' '--enable-async-io=8' '--enable-storeio=ufs,aufs' >> >> > '--enable-removal-policies=lru,heap' '--enable-cache-digests' >> >> > '--enable-underscores' '--enable-follow-x-forwarded-for' >> >> > '--disable-translation' '--with-filedescriptors=65536' >> >> > '--with-default-user=proxy' '--enable-ssl' '--enable-ltdl-convenience' >> >> > >> >> > How can I get squid 3.2.1 to use more than 1024 ? >> >> > >> >> > I've verified that system is fine, there's no per user limit either. >> >> > >> >> > # cat /proc/sys/fs/file-max >> >> > 199839