Solved

Brand new squid server shows many connections stuck in TIME_WAIT

Posted on 2006-07-12
10
1,223 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
 
LVL 14

Expert Comment

by:pablouruguay
ID: 17092017
0
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Multicast - Linux 4 25
OpenWrt 1 36
Linux Hanging with disable Error Output 4 81
Linux TCP flaw lets 'anyone' hijack Internet traffic 9 76
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…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

867 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now