Time_wait
Aug 14, 2007I have slow connections via https because I have so many connections on apache that are sitting with TIME_WAIT status using my connections
View 1 RepliesI have slow connections via https because I have so many connections on apache that are sitting with TIME_WAIT status using my connections
View 1 Repliesi have problem in time_wait it's very high
netstat -an|grep ":80"|awk '/tcp/ {print $6}'|sort| uniq -c
13 ESTABLISHED
15 FIN_WAIT1
2 FIN_WAIT2
1 LAST_ACK
2 LISTEN
10 SYN_RECV
1026 TIME_WAIT
Our customer is been banned and we have receive notify (we use csf)
The email received:
----------------------------------------------------
Time: Sun May 18 08:52:53 2008
IP: 81.22.77.88 (**)
Connections: 491
Blocked: permanently
Connections:
tcp 0 0 72.39.255.200:20 81.22.77.88:5201 TIME_WAIT
tcp 0 0 72.39.255.200:20 81.22.77.88:5457 TIME_WAIT
tcp 0 0 72.39.255.200:20 81.22.77.88:5456 TIME_WAIT
tcp 0 0 72.39.255.200:20 81.22.77.88:5200 TIME_WAIT
tcp 0 0 72.39.255.200:20 81.22.77.88:5203 TIME_WAIT
tcp 0 0 72.39.255.200:20 81.22.77.88:5459 TIME_WAIT
.....
.....
----------------------------------------------------
IP is the same x all 491 connection, but change port
Exactly what mean?
I've one main web server, the problem is that many people (now including myself) are often receiving "Connection timed out" messages in their web browser when trying to visit websites. This web server is a CentOS 5 machine and the HTTP server in use is Apache 2.2.
Of course, I've considered contacting server admin people who will look at this sort of thing on a one-off price or manage my servers at a periodic billing rate - but I'd much prefer to see what others have to say here first... hopefully learn some new stuff. It isn't a huge problem right now, but it can be annoying browsing the websites because a refresh would be required to connect again. I've learnt everything I know about Linux etc myself so far, through the likes of WebHostingTalk.. now is time for me to learn about TCP, HTTP, Apache and more if anybody has any ideas about this problem.
When running netstat, I'm seeing a rather large amount of TIME_WAIT's, I'm thinking this could have something todo with the connection time outs?
Here is my netstat output for TCP: [url]- notice all of the HTTP TIME_WAIT's for gangsternation.net? (also, a couple of other sites with less traffic)
apparently the sysctl commands / config does not work for VPS's. any way to reduce the time_wait period? got nearly 900 connections in that state!
View 0 Replies View RelatedI have around 800 time-wait connections
here's a typical connection from china:
tcp 0 0 72.18.203.114:80 222.213.72.22:3059 TIME_WAIT
This is pretty annoying because my server load is at 50% all the time because of chinese TIME_WAIT connections messing up my server at port 80.
I read something about MSL (?) and tcp_time_wait_interval but I don't know if that will do what I want.