Results 1 to 4 of 4
  1. #1
    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?

  2. #2
    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.

  3. #3
    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

  4. #4
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •