The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Load average spike - how do I find out why, after the event?

Discussion in 'General Discussion' started by spaceman, Nov 19, 2006.

  1. spaceman

    spaceman Well-Known Member

    Joined:
    Mar 25, 2002
    Messages:
    481
    Likes Received:
    0
    Trophy Points:
    16
    G'day.

    5 minute load average on my server was hovering around 1 (as it was all day), rose sharply to 20, then subsided back down to 1, all over the space of less than 10 minutes. I know this a) from ip alerts from the data center (The Planet) and b) from Munin graphs.

    My question - how do I work what caused this after the event? What logs should I be looking at and what should I be looking for? Normally 'top' gives it away to me if I'm looking at it while it's occurring, but I'm not very sure about working this out from historical data.

    Can anyone throw me any bones? :)

    Thx.
     
  2. spaceman

    spaceman Well-Known Member

    Joined:
    Mar 25, 2002
    Messages:
    481
    Likes Received:
    0
    Trophy Points:
    16
    Ok, ok, answered my own question :eek:

    I checked out a few log files here

    /var/log/
    /usr/local/apache/logs

    and found the smoking gun here:

    /usr/local/apache/logs/error_log

    Around the time of the spike the logs were stuffed full of a php function error generated from one of the hosting accounts. The owner of the offending accounts is a friend and ex-employee of mine, bit of a php tinkerer and geek. A suitably ticked off email has been sent to him :)
     
Loading...

Share This Page