Results 1 to 4 of 4
-
03-23-2007, 09:59 AM #1Web Hosting Evangelist
- Join Date
- Apr 2005
- Posts
- 537
howto find out what sites eating cpu power.
hello all,
i have a dedicated server running plesk, and ive found that one site is using alot of apache processes, which is pushing up the server load quite a lot, so im wondering if anyone can tell me how to find out which site is causing the problems?
-
03-23-2007, 08:47 PM #2Web Hosting Evangelist
- Join Date
- Dec 2006
- Posts
- 480
If you enable the server status module in apache config then browse to it, it will show you what each apache thread is serving.
-
03-23-2007, 08:53 PM #3Web Hosting Master
- Join Date
- Jun 2003
- Location
- Janesville, Wi
- Posts
- 1,520
/server-status won't be very useful besides showing which sites are being viewed and what.
One thing you could do is watch "top" and get the PID of httpd processes which are using a lot of memory. From there, quickly type in: "lsof -p pid | less". That will show all of the file descriptors, etc, about that PID and hopefully will include the logfiles which are open, etc.Jakiao
-
03-24-2007, 10:55 AM #4Problem Solver
- Join Date
- Mar 2003
- Location
- California USA
- Posts
- 13,681
If you make up a "find" command to find all your access logs (they are in the users home directory) and place them in this
http://www.oreillynet.com/pub/h/65
it will help you.Steven Ciaburri | Industry's Best Server Management - Rack911.com
Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance