Search squid archive

RE: Re: 3.2.1 file descriptor is locked to 1024?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 		 	   		  


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux