weezelds Posted August 20, 2007 Share Posted August 20, 2007 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 Quote Link to comment Share on other sites More sharing options...
steviewdr Posted August 20, 2007 Share Posted August 20, 2007 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 Quote Link to comment Share on other sites More sharing options...
weezelds Posted August 20, 2007 Author Share Posted August 20, 2007 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.