squid running out of sockets

Posted by drscroogemcduck on Server Fault See other posts from Server Fault or by drscroogemcduck
Published on 2010-04-19T15:50:59Z Indexed on 2010/04/19 15:53 UTC
Read the original article Hit count: 365

Filed under:
|

I have a setup where squid sits in front of a java server and acts as a reverse proxy. Recently i've load tested the site and if i fire 100 threads at it each making a request using jmeter i start getting errors in my load test tool like 'no route to host' even though the load test tool and the server are on the same machine.

if i run the following command where port 82 is the port my squid server is running on:

netstat -ann | grep 82 | wc -l

i get 22000 or something and most of them are in TIMED_WAIT. i'm thinking that maybe the huge number of sockets in the TIMED_WAIT state are starving the box of resources.

© Server Fault or respective owner

Related posts about squid

Related posts about linux