I've got Apache setup as a reverse proxy for a Java Application server (GlassFish) and I noticed there are about 100 connections in the state CLOSE_WAIT even on an idle development system:
sudo netstat -n -e -p -a -t | grep httpd | grep CLOSE_WAIT | wc -l
I'm using the following HTTP proxy settings:
ProxyPass /myapp http://localhost:8080/myapp ttl=20 max=1 smax=0 ProxyPassReverse /myapp http://localhost:8080/myapp
Why are all of these connections hanging around? I've set the "ttl=20 max=1 smax=0" so I figured all connections would be cleaned up on an idle system. Is the application server not doing its part to cleanup the connections?