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.

How do I Free Memory?

Discussion in 'General Discussion' started by rodolfochka, Oct 1, 2004.

  1. rodolfochka

    rodolfochka Active Member

    Joined:
    Feb 1, 2004
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Mexico City
    Hello everybody!!!

    Since some weeks ago my memory has been increasing and now in server status is : 87.7%
    I don't want that goes to 100%!! (I think this will chrash my server!)
    So , I've read all the forums about this problem, but I haven't found anything!!

    In SSH , with TOP I'ven't found anything, all the process are running ok:


    7:34pm up 9 days, 19:46, 1 user, load average: 0.10, 0.08, 0.07
    59 processes: 58 sleeping, 1 running, 0 zombie, 0 stopped
    CPU states: 0.0% user, 0.0% system, 0.0% nice, 100.0% idle
    Mem: 1023580K av, 1012168K used, 11412K free, 0K shrd, 39916K buff
    Swap: 2040244K av, 584508K used, 1455736K free 84144K cached

    PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
    22155 root 19 19 5112 3560 3292 S N 0.0 0.3 0:00 cpanellogd - sleeping for logs
    23538 named 9 0 3528 3208 3116 S 0.0 0.3 0:00 named -u named
    23539 named 9 0 3528 3208 3116 S 0.0 0.3 0:00 named -u named
    23541 named 9 0 3528 3208 3116 S 0.0 0.3 0:00 named -u named

    I typed M for memory sortage but nothing

    I updated cpanel, and nothing
    I reboot my server and nothing
    I restart apache several times and nothing
    Yesterday I stop all the mysql process, and nothing the memory was the same 87%


    In Server Information in WHM says this in memory:

    Current Memory Usage

    total used free shared buffers cached
    Mem: 1023580 1012196 11384 0 39740 83020
    -/+ buffers/cache: 889436 134144
    Swap: 2040244 585260 1454984
    Total: 3063824 1597456 1466368



    In CPU/Memory/MySQL Usage in WHM says this:

    this are the Top Processes:
    Top Process %CPU 4.0 /usr/bin/perl /scripts/restartsrv_named --check
    Top Process %CPU 2.0 /usr/bin/perl /usr/local/cpanel/whostmgr/bin/dnsqueue
    Top Process %CPU 1.0 /bin/sh -c /usr/local/cpanel/bin/dcpumon >/dev/null 2>&1
    Top Process %CPU 2.0 proftpd: connected: localhost (127.0.0.1:55832)
    Top Process %CPU 1.0 proftpd: connected: localhost (127.0.0.1:40683)
    Top Process %CPU 0.5 proftpd: connected: localhost (127.0.0.1:40074)
    Top Process %CPU 2.0 webmaild - serving 200.77.160.230


    And in memory:
    mysql 0.00 2.85 0.0
    named 0.00 1.24 0.0
    mailman 0.00 0.91 0.0
    root 0.18 0.70 2.0

    This are all the "high" processes, but I don't see anything that is consuming all my memory.


    PLEASE HELP ME!!!

    THANKS IN ADVANCE

    Rodolfochka
     
  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
    What do you mean by "nothing"? Sorting by M should indicate where the memory is being used. A full ps axfv in the forum CODE tags might help show what's using up all that memory.

    If you'd like me to take a look for you, I'd be happy to - either PM me or get contact details on my site.
     
  3. bjdea1

    bjdea1 Well-Known Member

    Joined:
    Mar 6, 2003
    Messages:
    83
    Likes Received:
    1
    Trophy Points:
    8
    Same prob

    I'm having the same problem and I know what's causing it.

    I ran a "ps -auxc" command and found there are hundreds of "cpanellogd" processes running filling up memory. Seems they are not getting closed and more and more are being generated. Any ideas or help - my memory is at 87.7 right now!!
     
    #3 bjdea1, Oct 14, 2004
    Last edited: Oct 14, 2004
  4. Sheldon

    Sheldon Well-Known Member

    Joined:
    Jun 7, 2004
    Messages:
    378
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Canada
    service cpanellogd stop
    service cpanellogd start

    /scripts/fixeverything

    # last resort
    # /scripts/upcp --force

    Try that.

    Sheldon
     
  5. noorolhoda

    noorolhoda Active Member

    Joined:
    Jul 19, 2004
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    hello
    I had same problem
    I could find one of user with "analog" command use more than 50% of my memory with typing "top" in ssh!!!!!
    I chmod 0000 home/theuser/tmp and then my memory usage decreased from 85% to 35% !!!! :D
     
    #5 noorolhoda, Oct 16, 2004
    Last edited: Oct 17, 2004
  6. RBRBRB

    RBRBRB Member

    Joined:
    Oct 16, 2004
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    ME too

    i have this problem too
    Top Process %CPU 85.0 /usr/bin/perl -w /usr/bin/mrtg /etc/mrtg/mrtg.cfg
    Top Process %CPU 84.0 /usr/bin/perl -w /usr/bin/mrtg /etc/mrtg/mrtg.cfg
    Top Process %CPU 63.0 /usr/X11R6/bin/X :0 -audit 0 -auth /var/gdm/:0.Xauth -nolisten tcp vt7

    my memory 29% to 90% about 12 hours

    i reboot server the memory will release
    but porblem cant fix
     
  7. noorolhoda

    noorolhoda Active Member

    Joined:
    Jul 19, 2004
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    login to your ssh
    and type :
    $ top
    then I think you can obtain more informations and find the user use the most memeory
     
  8. RBRBRB

    RBRBRB Member

    Joined:
    Oct 16, 2004
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    i enter top before
    but havet show which used
    ><
     
Loading...

Share This Page