Results 1 to 8 of 8
  1. #1

    What command detects apache performance?

    I know about "top" command and can see percents of memory and cpu apache used.

    But I want to detect what file eats resources (CPU, Memory, and bandwidth). Whats the command?

    I have Linux 9, root access.

  2. #2
    Join Date
    Feb 2004
    Location
    New Zealand
    Posts
    1,202
    no such thing as linux 9....

    maybe redhat 9?

    I don't think there is such a command ( I may be mistaken ). If your running cpanel/whm you can see which file is using the most resources via Server Status - CPU/Memory Usage
    DigitalGoods.info
    FREE Shared, Mega Resellers + Dedicated Servers

  3. #3
    Yep, RedHat 9...

    I found this page: http://networking.ringofsaturn.com/U...leshooting.php

    I just see by "top" command that apache eats many resources. I have several websites and NO Cpanel (Plain Linux RH) and can`t detect what file, from what website is eating such resources.

  4. #4
    if you have mod_status installed on the server you can use the apache ExtendedStatus function.

    Open your httpd.conf and add these lines to it:

    ExtendedStatus On
    <Location /serverstatus>
    SetHandler server-status
    </Location>

    You can then view apache stats by going to http://yourserver.com/serverstatus

  5. #5
    Join Date
    Apr 2005
    Location
    Chicago, IL
    Posts
    9
    You could try using 'lsof' to see what files are in use by various processes (including apache) though the best route would be to have a comprehensive monitoring and reporting toolkit so you can keep better tabs on your resource consumption.

  6. #6
    What command detects apache performance?
    Use top -c to trace commands.. Press SHIFT M and Shift P to get Memory usage and CPU usages respectively..

    APACHETOP (clueful.shagged.org/apachetop) is a handy tool to figure out the resource utilization by Apache..

  7. #7
    Join Date
    Feb 2004
    Posts
    772
    HI EMIN,

    The following is an example of the output of
    ulimit -aH.
    You can see that the current shell (and its children) is restricted to 1024 open file descriptors.


    core file size (blocks) unlimited
    data seg size (kbytes) unlimited
    file size (blocks) unlimited
    max locked memory (kbytes) unlimited
    max memory size (kbytes) unlimited
    open files 1024
    pipe size (512 bytes) 8
    stack size (kbytes) unlimited
    cpu time (seconds) unlimited
    max user processes 4094
    virtual memory (kbytes) unlimited
    Bright Info Solutions

  8. #8
    Join Date
    May 2005
    Posts
    61
    Try installing this software.. its a good one. I have been using this for a long time..

    http://clueful.shagged.org/apachetop/

Posting Permissions

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