1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

measure cpu usage on the server

Discussion in 'Site & Server Administration' started by login, Aug 18, 2008.

  1. #1
    How to measure cpu usage on a server? I have a lot of people having account on my dedi server. Someone is using a lot of cpu, making the Server Load to reach 70. How can I find out who that is ?

    Thanks, green rep to good answers :)
     
    login, Aug 18, 2008 IP
  2. mivent

    mivent Peon

    Messages:
    37
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It's somewhat hard to tell what site is causing the problem without a bit more information. Can you tell what process is using the CPU? Is it Apache, PHP, or something else?
     
    mivent, Aug 18, 2008 IP
    login likes this.
  3. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #3
    If it is cPanel server then you will get some idea from CPU/Memory usage and Currenlt Running process options in WHM.

    Kailash
     
    kailash, Aug 18, 2008 IP
    login likes this.
  4. proxywhereabouts

    proxywhereabouts Notable Member

    Messages:
    4,027
    Likes Received:
    110
    Best Answers:
    0
    Trophy Points:
    200
    #4
    by SSH, use top command.
     
    proxywhereabouts, Aug 18, 2008 IP
    login likes this.
  5. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    #5
    Sorry, I was to brief. I know the overall cpu usage by looking in cPanel. What I need to know is what account or domain that use much cpu so that I can shut that site down.
     
    login, Aug 19, 2008 IP
  6. DnHype

    DnHype Active Member

    Messages:
    1,011
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    80
    #6
    log on ssh type "top" without quote
    look the process that eat lot of ressource and look who run them.
     
    DnHype, Aug 19, 2008 IP
    login likes this.
  7. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    #7
    How do I look who run them in WHM?
     
    login, Aug 19, 2008 IP
  8. maestria

    maestria Well-Known Member

    Messages:
    705
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #8
    Hi,

    There is a tweak in apache conf and then you will be able to see what all ips access which all websites and how much clicks are being received for each of the websites.
    use the tweaking for viewing the server-stats and you will be able to see them yourselves.
     
    maestria, Aug 19, 2008 IP
    login likes this.
  9. IwhiC

    IwhiC Peon

    Messages:
    2,594
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    0
    #9
    configure your server for suphp and your process will be associated with a user name instead of nobody.. use the top command in ssh to see the process and cpu usage.. if you do not have suphp installed then most process will run as nobody making it harder to find the website causing the problems...
     
    IwhiC, Aug 19, 2008 IP
    login likes this.
  10. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    #10
    Thanks, green rep to you helpful people :)
     
    login, Aug 19, 2008 IP
  11. turbulence

    turbulence Well-Known Member

    Messages:
    956
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    138
    #11
    log on WHM, go to CPU/Memory/MySQL Usage, it will tell you which services hog the cpu the most
     
    turbulence, Aug 21, 2008 IP
    login likes this.