The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    1
    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,475
    Likes Received:
    20
    Trophy Points:
    38
    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
     
  3. Ben-Orbital

    Ben-Orbital Member
    PartnerNOC

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

    makes sense i surpose.
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    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).
     
  5. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,126
    Likes Received:
    21
    Trophy Points:
    38
    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
     
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    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
     
  7. sneader

    sneader Well-Known Member

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

    - Scott
     
Loading...

Share This Page