Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Sep 2001
    Posts
    157

    Default %CPU/%Mem in WHM

    Ever since the very nice and fancy page was implemented for the &show current CPU usage&, some strange thing have appeared.

    All apache httpd process list as 156-159% CPU usage EACH! They also say they are taking 5-10% mem. I know that should not be true. Is there a way to tell if this is a bug in WHM or if there is something seriously wrong with our server?

  2. #2
    Member
    Join Date
    Jan 2002
    Posts
    160

    Default

    [quote:97d3817b21][i:97d3817b21]Originally posted by xnull[/i:97d3817b21]

    Ever since the very nice and fancy page was implemented for the &show current CPU usage&, some strange thing have appeared.

    All apache httpd process list as 156-159% CPU usage EACH! They also say they are taking 5-10% mem. I know that should not be true. Is there a way to tell if this is a bug in WHM or if there is something seriously wrong with our server?[/quote:97d3817b21]

    How many domain accounts are on this server?
    Look at Apache status. How any &K&'s are there?

  3. #3
    Member
    Join Date
    Sep 2001
    Posts
    157

    Default

    I think we have 68 accounts

  4. #4
    Member
    Join Date
    Nov 2001
    Posts
    95

    Default

    Have you noticed that none of the figures in the WHM process list for CPU/Mem usage agree with the figures reported by the top command.

    I will use the figures from my server (Redhat 7.2) as an example

    If I grab the information for named and mysql from the top command (after its been running for a 30 seconds and stabilized), these are the figures it shows.



    CPU states: 7.8% user, 3.5% system, 0.0% nice, 88.5% idle

    %CPU %MEM COMMAND

    3.5 2.9 mysqld
    0.7 2.9 mysqld
    0.5 2.9 mysqld
    0.3 2.9 mysqld
    0.1 2.9 mysqld
    0.1 2.9 mysqld
    0.0 2.9 mysqld
    0.0 2.9 mysqld
    0.0 2.9 mysqld
    0.0 2.9 mysqld
    0.0 2.9 mysqld
    0.1 2.7 named
    0.0 2.7 named
    0.0 2.7 named
    0.0 2.7 named
    0.0 2.7 named


    Then if I look in the WHM process manager it shows

    COMMAND %CPU %MEM

    mysql 17 0
    mysql 17 0
    mysql 17 0
    mysql 17 0
    mysql 17 0
    mysql 17 0
    mysql 17 0
    mysql 17 0
    mysql 17 0
    mysql 17 0
    mysql 17 0
    named 26 9
    named 26 9
    named 26 9
    named 26 9
    named 26 9


    Weird isn't it.


    I've tried to work out the &real& memory useage consumed by all threads of a task before now and I know that it is almost impossible to get accurate numbers from linux. So I know its not totally WHM's fault, but the figures WHM does supply are almost meaningless. Like MySQL taking up 0% of the memory (I wish) named at 26% CPU, using the top command I've never seen named above 0.1% CPU.


    Maybe this is just a problem with my machine or maybe its a Linux 7.2 bug, maybe a few other people could look at their machines and see what numbers are reported.


    Pete

  5. #5
    Member
    Join Date
    Sep 2001
    Posts
    157

    Default

    So, should I assume this is a bug in Cpanel and apache really isn't bringing the server to its knees 24/7?

  6. #6
    Member
    Join Date
    Nov 2001
    Posts
    95

    Default

    Open a shell and type &top& leave it for around 15 seconds for everything to stablize and see what it reports for the httpd tasks.

    If you cannot see enough of the output, you could type

    cd tmp (or another temp directory)
    top -n3 -b & top.txt
    pico top.txt

    Scroll down to the bottom set of results as they will be more accurate than the results from the top of the file.

    Pete

Similar Threads & Tags
Similar threads

  1. Any way to show CPU/Mem/MySQL usage to customers?
    By Sys3X in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 09-17-2009, 01:06 PM
  2. CPU/Mem Overhead with using RBL with Spamassin?
    By Kaydiddle in forum E-mail Discussions
    Replies: 0
    Last Post: 02-14-2009, 02:49 AM
  3. Interpreting my CPU and MEM usage stats
    By Afro-Ninja in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 12-09-2008, 04:07 PM
  4. cpu and mem usages by domain user
    By SACHIN in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-23-2006, 09:28 AM
  5. My god, how to limit users CPU, MEM %?
    By Jedia in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 11-05-2004, 05:00 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube