Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm seeing high load average at regular times on one of my sites. I have alerts setup, but it's not obvious what's causing the high load, so I'd like to capture the state of the system when the alert goes off.

What's a good way to capture the relevant pieces of information so I can post-facto determine what's causing the load?

This is linux/ubuntu, apache, mod_python/django, mysql.

share|improve this question
FWIW, since you are using mod_python, your problems are possibly as described in '…;. – Graham Dumpleton Mar 2 '10 at 10:20

I like to use a program called atop. Similar to top but it also grabs snapshots of the atop window at user defined intervals. Set INTERVAL=60 in /etc/atop/atop.daily to get 1 minute snapshots. Run atop -r /var/log/atop/atop_20100214 to view 1 minute intervals for a particular date. Use t and T keys to view forward and backwards through time. These file paths are for CentOS, yours may be slightly different.

share|improve this answer

If Ubuntu has sar, then that can capture System disk usage, vm activity, etc. Once you setup the computer to collect data then you can run reports for both busy and non-busy times to compare activity. Apache has mod_status and mysql has some statistics tools, you could probably get something from them periodically through cron.

share|improve this answer
Collected through cron and graphed in ganglia (you do run ganglia, right?) See for examples. – toppledwagon Feb 10 '10 at 20:53

NewRelic has excellent tools for monitoring causes of server load. Both from an Application and a Server perspective.

Application monitoring such as slow SQL queries, error rates etc

Server monitoring metrics such as network/disk/RAM/CPU utilization rates

User monitoring such as performance by page, location, browser; and load time breakdown between app, network, DOM and rendering.

We've used it here for nearly 12 months now and it's been invaluable. And you get a free shirt.

share|improve this answer

Your Answer


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.