TIME_WAIT And Connection Timeouts
Mar 30, 2008
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)
View 8 Replies
ADVERTISEMENT
Aug 14, 2007
I 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 Replies
View Related
Oct 29, 2009
i 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
View 5 Replies
View Related
May 7, 2008
I have a VPS hosted at with a soft layer reseller, my 5 sites have been going well with a very small amount of time outs over the past few months (5-10%), however, one of the sites is now so popular that all my sites are now timing out 60-80% of the time.
What can I do to optimise the connections to my site, recently I went through an built a custom .htaccess from Perishable Press for each site that has reduced load times, and bandwidth.
Will adding a 3rd DNS help?
80%+ of my traffic is hot linking, I would like to keep these hot links.
View 2 Replies
View Related
May 20, 2008
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?
View 2 Replies
View Related
Jul 7, 2007
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 Related
May 20, 2008
Is there a way to take the limits off of the timeouts from WHM?
I have a VPS from servint and I'm trying to convert my phpBB 2.0.x to phpBB 3.0.x but I keep getting Internet Explorer Cannot Display the Webpage due to resource limits ...therefore I need to take the limits off for now for converting ....
View 1 Replies
View Related
Oct 27, 2007
68.56.143.206 - - [27/Oct/2007:18:17:54 -0400] "-" 408 - "-" "-"
75.19.61.59 - - [27/Oct/2007:18:17:54 -0400] "-" 408 - "-" "-"
65.10.1.137 - - [27/Oct/2007:18:17:54 -0400] "-" 408 - "-" "-"
69.234.191.206 - - [27/Oct/2007:18:17:54 -0400] "-" 408 - "-" "-"
69.119.254.6 - - [27/Oct/2007:18:17:54 -0400] "-" 408 - "-" "-"
70.185.212.244 - - [27/Oct/2007:18:17:54 -0400] "-" 408 - "-" "-"
24.98.7.18 - - [27/Oct/2007:18:17:54 -0400] "-" 408 - "-" "-"
74.14.51.57 - - [27/Oct/2007:18:17:54 -0400] "-" 408 - "-" "-"
74.64.50.40 - - [27/Oct/2007:18:17:54 -0400] "-" 408 - "-" "-"
12.192.27.246 - - [27/Oct/2007:18:17:54 -0400] "-" 408 - "-" "-"
my servers are literally overwhelmed with this kind of ddos attack.
i am running apache 1.3.37 and php 4.4.7 on some quad core boxes. you got any ideas if we could work this out somehow? we tried banning the ips but there were like 10000 and the servers became heavy overloaded.
View 2 Replies
View Related
Aug 24, 2005
I am having a user that is having issues with their IMAP accounts and Outlook timing them out. I have had them set the timeout in Outlook to the maximum of 10 minutes and it is still showing up occassionally. I have a dedicated server that is running Exim 4.2. I was hoping someone here had an idea on how I can either fix this on the Server side or the client side.
View 7 Replies
View Related
Aug 17, 2008
I run a video script on my new server at leaseweb and had a lot of trouble with timeouts and IO Errors when uploading files to our site.
We tried changing a few settings making the environment as liberal as possible.
I changed max_input_time and max_execution_time in php.iniI also changed TimeOut in httpd.conf and made sure there is no LimitRequestBody in httpd.conf
The tmp directory should have enough space and is writable.
So the question is if these changes are not enough because we are still getting these errors.
Is there something we are missing. Or does Leaseweb have some invisible incoming bandwidth limit it slaps on its servers by default?
View 3 Replies
View Related
Sep 25, 2013
The last packet successfully received from the server was 60.410.682 milliseconds ago. The last packet sent successfully to the server was 60.410.687 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'auto Reconnect= true' to avoid this problem.
View 2 Replies
View Related
Apr 7, 2008
I have ftp server (pure-ftp). with firewall.
i allowed 20 and 21 port in "CSF" firewall
now when i or our client connect to the server connection done.
and the they fire dir or ls command they will receive error
"425 Could not open data connection to port 2535: Connection timed out"
what is the problem.i have already allowed passive port 2500:3500 then why i received this types of error
View 3 Replies
View Related
Jan 24, 2008
I 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.
View 14 Replies
View Related
May 14, 2008
i do a tracert on my VPS and get the attached results. My location is South Africa. Lately it just seems a bit sluggish. Can somebody please do a tracert from USA and EU for me please to do a comparisons or advice me on this VPS
View 13 Replies
View Related
Jan 6, 2007
I am on a VPS server and want to know in high traffic conditions how many connections per IP address can come... because on my site connections per IP going to 300 and mostly around 100.
But these are fluctuating and from different locations... everytime.. so dont think as a Dos but so many connections per IP makes my server down for few minutes until connections dont go down.
how many maximum connections per IP will be fine... for a little popular site.
View 5 Replies
View Related
Dec 11, 2007
I have a directory, named downloads/
I have some huge files for download in this directory.
now, when our users trying to download files from this folder with flashget (or dap or ...) this programs create 5 connection to that files! so If a user trying to download 5 files , he have 25 connection to my server!
How can I limit connection per Ip on file in this folder ?
View 5 Replies
View Related
Dec 18, 2007
Today i get alert from server provider saying my server is under attack, i check netstat and found too many connections.
Quote:
This ticket was automatically generated by the Softlayer Network Protection System. Due to the large amount of traffic targeted to your IP address 74.86.157.184, SoftLayer has automatically injected the IP address into our Cisco Guard Protection system. This system diverts traffic destined to the IP address 74.86.157.184 through hardware devices that will try to identify and block the specific packets and flows responsible for the attack while allowing legitimate transactions to pass. The injection of 74.86.157.184 will remain in place until this attack subsides and then be automatically removed once traffic levels reach a normal level.
Details of the event follow:
Exceeded Bits In: 782.7 M (Threshold: 500 M)
[url]
The connections are from my server to port 80 of "140.211.166.134".
lsof -i :port gives
PHP Code:
# lsof -i :47837
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
crond 16004 root 269u IPv4 48880489 TCP server20.hosthat.com:47837->ftp-osl.osuosl.org:http (CLOSE_WAIT)
udevd 31116 root 269u IPv4 48880489 TCP server20.hosthat.com:47837->ftp-osl.osuosl.org:http (CLOSE_WAIT)
yum-updat 31347 root 269u IPv4 48880489 TCP server20.hosthat.com:47837->ftp-osl.osuosl.org:http (CLOSE_WAIT)
auditd 31683 root 269u IPv4 48880489 TCP server20.hosthat.com:47837->ftp-osl.osuosl.org:http (CLOSE_WAIT)
python 31685 root 269u IPv4 48880489 TCP server20.hosthat.com:47837->ftp-osl.osuosl.org:http (CLOSE_WAIT)
ntpd 31715 ntp 269u IPv4 48880489 TCP server20.hosthat.com:47837->ftp-osl.osuosl.org:http (CLOSE_WAIT)
#
I have rebooted the server and now server is normal.
I disabled yum on the server. Some days back, i have same problem with another server, server have too many connection to one of the yum respositry IP. The OS is CentOS 5.1
View 2 Replies
View Related
Jun 7, 2007
This is an error that dns report spat out to me. I have the firewall disabled as of now so I don't understand why packets would be blocked..if they are being blocked. From what I can tell, I can get to the server and resolve no problem...but could that stop other dns servers from connecting to it? I recently moved my cpanel box to another location in the LT datacenter in order to get on a different subnet - the previous one was a spam list nightmare. All IP's have been changed over and such...is this just cached from like the 14 hours I was down (ouch!) or is this still happening? I mean...its able to look up a records and it can get the mx servers...
error: Our local DNS server was unable to get your MX record. This usually means that a firewall in front of your DNS server is interfering. For example, it may be blocking DNS packets from low source port numbers (ours is often in the 1024-1030 range). Firewalls should never block DNS queries based on the source IP address; otherwise, it is guaranteed that legitimate queries will be blocked. This specific lookup must be cached, so a recent change may not be reflected.
View 5 Replies
View Related
May 28, 2007
I have a Linux box running CPanel and am having issues with 1 particular client trying to connect using FTP. I am also running lfd and csf.
The problem is that whenever they try to ftp to the server (regardless of the domain), they get an error saying:
"Connection to host lost".
I look through the logs (/var/log/messages) and see that there was a connection made and closed. No errors.
Otherwise, all my clients can connect without a problem.
View 6 Replies
View Related
May 20, 2008
I dont know much about server. I was wondering: if I plug in my laptop at work would the server log my connection, even if my laptop is not a client?
View 2 Replies
View Related
Jun 28, 2009
where I can't access my terminal because my connections keep getting timed out. Its been ok previously but for the last 2 days I could not connect because the connection timed out 9/10 times. No modifications were made during this time so whats the problem guys?
View 4 Replies
View Related
Jul 29, 2009
I am checking WHM apache status and I am seeing roughly 72+ connection from 127.0.0.1 (server), why? What could be the problem? Is the server hanging up or is this an indication that something is broken in the server?
View 2 Replies
View Related
Oct 28, 2009
Is anyone having issues with connection dropping alot with FDC servers?
View 2 Replies
View Related
Apr 3, 2009
I just saw a post talking about a better connection to Brazil, but according to the "internet lines", Peru has a different connection.
So, almost 80% of the people here uses Telefonica and some Telmex. I know ThePlanet has direct connect with Telefonica, but, is there any other good provider with the same benefits or even better?
View 4 Replies
View Related
Dec 19, 2008
I have a problem with my VPS. Hosting company have migrated my vps to a new and better dedicated server and now on all my sites(and IP) I got connection timeout error. I have changed "Main IP" and resolvers in HyperVM 10 minutes ago and it's not working(or I have to wait to wait like for nameservers registration?). I can ping my IP and all services(lxadmin,lighttpd etc are started successfully and its not wotking, I still getting connection timeout error.
View 5 Replies
View Related
Feb 23, 2008
I am having some serious issues on one of my servers. The server/browser error I (and clients) get when executing something that needs more than 5 secs to finish is "The connection to the server was reset while the page was loading".
[Sat Feb 23 11:27:22 2008] [info] (104)Connection reset by peer: core_output_filter: writing data to the network
[Sat Feb 23 11:27:24 2008] [notice] Digest: generating secret for digest authentication ...
[Sat Feb 23 11:27:24 2008] [notice] Digest: done
[Sat Feb 23 11:27:24 2008] [warn] pid file /var/run/apache2/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sat Feb 23 11:27:24 2008] [notice] Apache configured -- resuming normal operations
[Sat Feb 23 11:27:24 2008] [info] Server built: Jul 28 2006 09:04:55
[Sat Feb 23 11:27:26 2008] [info] (104)Connection reset by peer: core_output_filter: writing data to the network
[Sat Feb 23 11:27:27 2008] [info] (104)Connection reset by peer: core_output_filter: writing data to the network
View 3 Replies
View Related
Mar 8, 2008
I don't know it anymore. Tried everything. I can not reach my server properly. A lot of time time out.
netstat -anp |grep 'tcp|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
1 127.0.0.1
1 38.99.44.101
1 64.131.90.38
1 78.176.158.75
1 78.179.73.135
1 88.229.70.143
1 88.242.97.204
1 88.247.87.58
1 92.112.211.223
3 78.176.175.136
3 88.229.40.142
3 88.231.180.181
4 78.183.227.146
18 0.0.0.0
348
348 connections from an empty IP? i have tried syn cookies, let the firewall block all ports without results.
View 10 Replies
View Related
Jul 16, 2008
When i try and connect to my server via SSH it replys with an error saying;
Server refused to allocate pty
stdin: is not a tty
My host's knowledge base says to click "Fix Centos Dev" but this doesn't work...
View 6 Replies
View Related
Jan 24, 2008
I am trying to access a few websites like auction websites and gaming websites.
But everytime they try and load I get a message "The connection has timed out"
They have been blocked so I can't access them I have tryed checking my "HOST" file and it doesnt seem to be blocked that way. Does anyone know any other ways it could of been blocked?
View 7 Replies
View Related
Oct 4, 2008
What on earth is going on? I have had my business website hosted by 2mhost.com for years and now it has been down for 2 weeks and their site is down also? What a rip-off! There are no phone numbers to contact them on the internet (none from google), no email addresses to contact anybody! How professional i tell ya! I am paid until January and i am losing money because my site is NOT up and running, there have been problems ALL YEAR! But it has never went this long, and they could at least email or notify customers of something major going on or something. Does anybody know of how to contact them and/or if there was anything that is going on like are they still in business?
View 14 Replies
View Related
May 2, 2007
I've just set up a website on our new dedicated server but every time I try and access it through the internet I keep getting "The connection has timed out" anu ideas what this could be?
View 4 Replies
View Related