Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache processes overloading cpu

Status
Not open for further replies.

Teofilo

Technical User
May 22, 2002
2
MX
Please help me, I have a server with Red Hat Linux and Apache and once o twice a day the server is very slow, when a log in with telnet and run "top" I always find 3 or 4 apache processes eating up all available cpu, my question is:
Is there any way to trace an apache process (I only got the PID) to find out what URL page it belongs to?

If I could find out what is the php or cgi file that is overloading my server then I could stop this, but I don't know how to do it!!

I only have a few sites of mine and a few others of some friends hosted in the box, so I need to know who has the buggy program overloading my server.

Thanks in advance experts for your advice :)
 
You can turn on the server status page; it will link the pid to the page, vhost, and requesting client (among other things). Be sure to look at the access controls as this may not be something you want the world to see.
 
GoldenEternity thank you for your info, I just enabled the server status in the https.conf, I've seen this mod_status line in the config file but I never used it before, I was able now tho look at page and pinpoint the offending page, thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top