Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Brand new squid server shows many connections stuck in TIME_WAIT

Posted on 2006-07-12
10
1,241 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

839 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