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
https://forums.phpfreaks.com/topic/65883-solved-diagnosing-load-spikes/
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

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 :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.