Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to figure out why this keeps happening.

We have one Ubuntu Server in front of our Web stack that receives a good 100s of requests per second.

Sometimes, I wont be able to access any site (after going to it a lot).

Doing something like ssh -vv host hangs in debug1: Connecting to host [1.2.3.4] port 22. for a good couple of minutes until it finally comes through, then I am "unbanned".

The thing is, there's no firewall throttling how many requests this server can handle. I don't understand what could be causing the issue.

Anyone have any ideas?

share|improve this question

1 Answer 1

A hang at that stage of the connection indicates that the host is not responding, and dropping packets to port 22. If I am correct in interpreting your post as that for some period both the web server port 80 and the sshd server port 22 are inaccessible, how you proceed depends on whether you are local the machine, and what sort of logfiles you have access to.

Start with a ping to see if the box is up, also check whether the network is up, ie check the backend systems (if you are remote) because the link might be going down.

tail the /var/log/messages and watch "netstat -antp" for the count of connections to the box.

you can use tcpdump or wireshark to see if anything at all is coming back from your connection attempts.

Really, you are probably going to need to provide more details of your setup to get a thorough answer...

some possible ideas are;

Virtual Servers

Some ISP provide "artificial" limits on vserver threads and processes, above that of the OS ulimit settings, this might be limiting connections.

Denyhosts, fail2ban, tcpwrappers

these can be configured to block connections if you have failed authentication

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.