Jump to content

[SOLVED] Diagnosing Load Spikes


weezelds

Recommended Posts

Hello,

I'm trying to diagnose some random server load spikes.  While running top, I'll notice that httpd (apache) will sometimes suck up a ton of cpu time.  How can match up the PID w/ an incoming http request?  I've tried looking at apache raw access logs, but the PIDs don't seem to be listed there.

 

Thanks for any help

Link to comment
Share on other sites

Enable server-stats in httpd.conf. Uncomment #Extended Status On also.

 

Then browse to http://localhost/server-status

 

Also, if your on linux, I recommend installing munin.

 

Even though apache might suck up a lot of CPU for a spike, it only starts to get serious if its a "sustained" spike.

 

You will find if very difficult to track PID to an individual request. Your best bet is to tail the access logs and have a TOP running at the same time. The server-stats will give you a good idea also.

 

-steve

Link to comment
Share on other sites

ooh, enabling server-status was just wut i needed...there it is...PID matched w/ http request, now i can just watch top and diagnose...it made me realize this screen is buried in cpanel's whm somewhere...i'll just use that...*smacks forehead*

 

Thanks dude :)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.