I have a Debian Squeeze dedicated server which hosts 4 front-end websites, and several back-office tools and APIs (which feed into the main websites).
This has all been up and running since 2008 without issue - but suddenly today we're experiencing lots of 110: connection timed out
errors when trying to connect to the APIs hosted on the box.
The apps are PHP / mysql based and the server software is Apache.
Each of the domains called for API call is mapped to 127.0.0.1 in the /etc/hosts
file and it appears from testing on the command line with both curl
and wget
that the actual DNS lookup is resolving fine. Connections work maybe 1 in 3 times.
We've checked and increased (as a precaution) the Apache max_connections
.
Likewise mysql connection limits have been increased - but neither of these limits were even getting close to being reached.
The timed out test requests don't even touch on the Apache error/access logs - it appears like Apache is just not responding to certain requests.
The server load itself never goes above 0.6.
iptable rules have not changed since yesterday (when this worked) and are allowing internal connections to and from 127.0.0.1.
To bypass an php/rewrite rules etc I have tried requesting a simple image from a sub-folder on the command line. In tests this is returned roughly 1 in 3 times. Each other time it fails.
Can anyone suggest what else to look at next?
------------------ UPDATE -----------------
It seems the server is closing port 80 intermittently. IP tables has no rules to do this...
Any ideas?