Server peak load / server offline , log?

3 posts / 0 new
Last post
#1 Wed, 11/26/2014 - 03:55
marceld202

Server peak load / server offline , log?

Hi,

I run a VPS with VirtualMin. Yesterday, there was a peak in visitors and it seems like the whole site went down for an hour or so.

I checked apache error log, access log and memory swap. Strange thing is. The log has no errors for that timeframe and the memory swap is just used a little bit.

How come the server went online / how can I best find this out with VirtualMin / WebMin?

Thanks a lot.

Wed, 11/26/2014 - 09:08
andreychek

Howdy,

It can be hard to tell afterwards what the cause of an issue like that is... next time you're seeing that issue occurring, I'd suggest running these commands:

uptime
free -m
ps auxwf
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr | head -20
mailq | tail -1

Those will give you some information about the problem as it's happening that can later be used to aid in diagnosing what's going on.

-Eric

Fri, 11/28/2014 - 05:30
marceld202

Thanks! I will keep this in mind.

Topic locked