Web Hosting Talk







View Full Version : apache pros =) httpd uses 90% + CPU


RevSlappy
10-24-2004, 07:53 PM
I have a busy forum and I have read many tweaks on this board that have helped me a lot. My problem now is that for some reason TOP is showing me that HTTPD is using 90% + of my CPU. This has only started in the last few days and I can't for the life of me find out why.

I'm not a linux expert so is there some syntax I can use to track down exactly what it is that is causing this problem so I can get a better idea on how to fix it?

RevSlappy
10-24-2004, 09:16 PM
when I do a ps -aux I get a screen full of this


/usr/local/apache/bin/httpd -DSSL

LeaseWeb
10-24-2004, 09:29 PM
Is it a shared webserver?
If so some customer probably uploaded a sloppy coded php/perl-cgi page

Enable mod_status, add your workstations IP address to the allowed list and look on http://your.server.tld/server-status

There you will see which page is causing the cpu load.

RevSlappy
10-24-2004, 10:15 PM
i will add that now but I own the server and the only one using it. I'm pretty sure I know the site causing it just not the actual problem itself lol =)