Solved

Brand new squid server shows many connections stuck in TIME_WAIT

Posted on 2006-07-12
10
1,249 Views
Last Modified: 2008-02-01
Hi all!

The title really says it all.  I deployed the squid server to a small number of highly used computers yesterday and this morning I checked the server with a netstat -t and saw that several of the computers were still in the TIME_WAIT state.  Is there a way that I could clear them or, better yet prevent the connections from getting stuck in this state permanently?
0
Comment
Question by:brussell123
  • 3
  • 2
  • 2
  • +1
10 Comments
 
LVL 14

Expert Comment

by:pablouruguay
ID: 17091065
do a netstat -np  and check the process that hang the connection
0
 
LVL 14

Expert Comment

by:pablouruguay
ID: 17091071
sorry netstat -ap
0
 

Author Comment

by:brussell123
ID: 17091769
All of the ESTABLISHED connections (except my ssh connection) are associated with squid.  The TIME_WAIT connections just have a "-" in the PID/Program field.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 14

Expert Comment

by:pablouruguay
ID: 17092017
0
 
LVL 40

Expert Comment

by:noci
ID: 17095716
TIME_WAIT's are half closed connections..., The FIN packet has left your system but the FIN-ACK hasn't been received yet.
so there is no process associated anymore with the socket (hence the - in the PID field).

The problem might be a slow response from a remote system like:

Squid closes the link, your netfilter settings close down a few seconds later but the FIN-ACK hasn't been received yet.
AFTER 60 seconds that socket will get killed too.

Here is a similar reference.
http://www.mail-archive.com/netfilter-devel%40lists.samba.org/msg00644.html
0
 

Author Comment

by:brussell123
ID: 17193627
No luck.  I have resorted to simply ignoring the TIME_WAIT connections.  I have no idea what the max connections of my box is but I really cant think of what else to do except restart the server once a week at night.
0
 
LVL 40

Expert Comment

by:noci
ID: 17344119
I was on holiday since 27-07-2006, and obviously missed the update; if brussel123 want to persue or close I leave it to him
regarding the points there's no real solution only a pointer were to look, and an explanation.
0
 
LVL 1

Accepted Solution

by:
DarthMod earned 0 total points
ID: 17419346
PAQed with points refunded (125)

DarthMod
Community Support Moderator
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question