Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Memory Usage Always 80% Above

Discussion in 'General Discussion' started by Ben-Orbital, Sep 27, 2004.

  1. Ben-Orbital

    Ben-Orbital Member
    PartnerNOC

    Joined:
    Oct 6, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    UK
    The memory usage on one of our servers is always 80% or above. There is a process that is always running that seems to be using a large portion of the memory:

    4901 root 10 20 323M 25600K nanslp 93:25 0.00% 0.00% perl5.8.4

    The process seems to be idle, yet using large amounts of resources. Has anyone got an ideas how to reduce memory usage? :) Thanks
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Well, you really need to find out what the process is. One way would be to use:

    lsof | grep 4901
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Ben-Orbital

    Ben-Orbital Member
    PartnerNOC

    Joined:
    Oct 6, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    UK
    4901
    cpanellogd - sleeping for logs

    makes sense i surpose.
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    If it's not actually doing anything (i.e. processing logs) then it's probably been poorly written with respect to memory management. A restart should free up the memory (it restarts with a cpanel restart).
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,155
    Likes Received:
    39
    Trophy Points:
    178
    Location:
    La Crosse, WI
    cPanel Access Level:
    Root Administrator
    Newbie Alert!!! What command did you use to help you find out the culprit that was causing the high memory usage?

    - Scott
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Two ways:

    1. Use the top command and then sort by memory usage by hitting M

    2. Use the following ps command:

    ps axfv
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,155
    Likes Received:
    39
    Trophy Points:
    178
    Location:
    La Crosse, WI
    cPanel Access Level:
    Root Administrator
    Thanks for taking time to document this for me!

    - Scott
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice