squid under solaris 2.5.1 consume a lot of file descriptors?

squid under solaris 2.5.1 consume a lot of file descriptors?

Post by SO Kwok Ts » Thu, 22 Jan 1998 04:00:00


I have configured squid 1.1.20 on a Ultra Sparc with Solaris 2.5.1
recently.  I notice that when the connection to outside is sluggish,
there will be a number of CLOSE_WAIT with child connecting its http

Paritial output of netstat:

parent.8080            child1.4501        33580      0  8760      0 CLOSE_WAIT
parent.8080            child2.4428        17520      0  8760      0 CLOSE_WAIT
parent.8080            child2.4963        17520      0  8760      0 CLOSE_WAIT

* parent is the Ultra Sparc.

So, the number of file descriptors used increased a lot during that
period.  It rises up over 1000 even when there are a few established
connection only.  However, I seldom notice that there are any CLOSE_WAIT
in a squid parent proxy server under Digital Unix.

I would like to ask whether you have similar observation.  If your proxy
server is busy enough, have you tuned anything such as
tcp_close_wait_interval of /dev/tcp?  Its default is 240000ms (=4mins).
By the way, I notice no difference even if I set it to 5000.  Those
CLOSE_WAIT are still there in netstat output.

Thanks a lot for your opinion.

SO Kwok Tsun
Information Technology Service Unit, CUHK


1. Small files/lots of directories consuming disk space.

I set up an imaging system where I store small images in numeric
subdirectories. 0/0/0/1/0/3 stores all of the images for number 103, for
example. The problem is I'm using about 10 times the disk space I expected.
I suspect it's the space for the subdirectories, but even there it doesn't
seem to add up.

Any ideas on the cause, and any way to tweak SCO to not waste so much space?



2. Installing XFree86: Setting File Links for Default Server

3. Residue processes in Solaris that consume a lot of CPU

4. BigAdmin Linux Collection

5. Syslogd consumes lots of CPU time.

6. boot -r

7. Kernel consume a lot of CPU

8. startx

9. How to consume lots of BW, part II

10. X consumes a lot of memory

11. rpc.nisd consuming lots of CPU

12. Squid consumes to much memory

13. "Bad file descriptor" with Bash; how to designate descriptors?