I'm having a problem with a Debian 6 server where it looses network connectivity and doesn't come back (server does not respond to pings, and can't connect to any services). The problem happens sporadically. Some times it will go a month without the problem occurring, while other times it will happen within a few days of being rebooted.
When logged into the console, I confirm that the server doesn't seem to have network conectivity (can't ping 8.8.8.8 for example). All services are running though (mysql, Apache, SSH, etc).
When the problem happens, the network interfaces are up (I checked ifconfig, all interfaces looked normal). I also check iptables, and verify there were no rules that would block anything. I also try running /etc/init.d/networking/restart, but that does not fix the problem. The only thing I've found that fixes the problem is rebooting.
The server is a virtual machine with a wired connection in a data centre. The company I rent the server from thinks the problem is due to high RAM usage. They said that the server was frozen due to resource exhaustion and the server stopped responding to ICMP requests, referencing this:
root@vm2:~# free -m
total used free shared buffers cached
Mem: 8181 7816 365 0 364 6201
-/+ buffers/cache: 1250 6931
Swap: 8191 0 8191
Do you think that high RAM usage could have anything to do with this problem? I think it is something else, but I don't know what else to check.
free
output provided, you have 6GB going to the filesystem cache. If you were running out of memory it would have long since purged most everything out of the FS cache to make room for application memory requests. Not to mention it shows 0% of the swap space being used. If you were running low on memory the kernel would have decided to swap SOMETHING out to free up the physical memory. OOM may cause network service disruption but this doesn't show memory exhaustion happening.