Re: [squid-users] 2003/08/13 08:20:21| httpAccept: FD 15: accept failure: (24) Too many open files

From: Adam <adam-s@dont-contact.us>
Date: Wed, 13 Aug 2003 11:20:12 -0700

Brian
> so ulimit for filedescriptors on solaris defaults to 256 for
> non-root. is there a way to determine how many filedescriptors
> squid needs so that i can set a proper ulimit?

Cachemgr.cgi's General Runtime page tells you how many you are currently
using:
           File descriptor usage for squid:
               Maximum number of file descriptors: 2048
               Largest file desc currently in use: 514
               Number of file desc currently in use: 491
               Files queued for open: 0
                       Available number of file descriptors: 1557
                       Reserved number of file descriptors: 100

Many people who have posted have started with 1024 and then tuned it based
on the above stats. I explained what I did to make the changes here:
http://groups.google.com/groups?selm=bdpt9q%242ofj%241%40FreeBSD.csie.NCTU.edu.tw

Fortunately Henrik corrected a mistake I made when he wrote me:
> You should not increase the rlim_fd_cur beyond the default 256 on
> Solaris. Doing so may break most 32-bit applications in certain
conditions..

I'd missed that in the Solaris FAQ:
http://groups.google.com/groups?selm=casper.911853620%40nl-usenet.sun.com
(look at # 3.45).

hth

adam
Received on Wed Aug 13 2003 - 12:21:28 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:18:53 MST