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.

Possible Memory leak - Steady mem usage increase!

Discussion in 'Workarounds and Optimization' started by liam1412, Oct 5, 2011.

  1. liam1412

    liam1412 Member

    Joined:
    Oct 5, 2011
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi All

    I have recently taken the plunge into web hosting, and am renting a dedi that I have SolusVM installed on. I have created a VPS specifically for Cpanel/WHM/WHMcs and all is ticking away nicely with only one minor problem.

    After reboot the VPS idles nicely at just under 200mb. Over the course of about 2 days the mem usage slowly increases. The highest it got was about 800mb and I then rebooted the server, which brought it back down to normal.

    Now I am 2 days further along and it has creeped its way up to over 600mb. I am tempted to just leave it and see what happens, as at the mo I have no clients.

    All that is on the server is Cpanel/WHM/WHMcs and the SolusVM WHMcs plugin v3. I hope somebody maybe able to help.

    Here is the out put from the top command in SSH

    3444 root 20 0 12628 1220 944 R 0.3 0.1 0:00.80 top
    1 root 20 0 10368 728 608 S 0.0 0.1 0:00.51 init
    2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd/102
    3 root 20 0 0 0 0 S 0.0 0.0 0:00.00 khelper/102
    4 root 20 0 0 0 0 S 0.0 0.0 0:00.00 nfsiod/102
    115 root 16 -4 12636 716 384 S 0.0 0.1 0:00.00 udevd
    240 root 20 0 38868 620 488 S 0.0 0.1 0:03.93 brcm_iscsiuio
    548 root 20 0 5928 616 492 S 0.0 0.1 0:00.41 syslogd
    593 named 20 0 180m 4688 1952 S 0.0 0.4 0:00.61 named
    611 root 20 0 62656 1220 652 S 0.0 0.1 0:00.00 sshd
    622 root 20 0 21660 892 684 S 0.0 0.1 0:00.00 xinetd
    634 root 20 0 11944 1424 1168 S 0.0 0.1 0:00.00 mysqld_safe
    698 mysql 20 0 214m 32m 5528 S 0.0 3.2 3:10.88 mysqld
    909 root 20 0 20880 1172 580 S 0.0 0.1 0:00.24 crond
    984 root 20 0 28048 2992 1080 S 0.0 0.3 0:00.41 cphulkd
    1016 root 20 0 87944 11m 1800 S 0.0 1.2 0:02.27 cpsrvd-ssl
    1018 root 20 0 92976 14m 1816 S 0.0 1.4 0:00.00 cpdavd


    And the output from free -m

    total used free shared buffers cached
    Mem: 1024 604 419 0 0 414
    -/+ buffers/cache: 190 833
    Swap: 1024 0 1024
     
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    your only using 190M 833 is cached for quick use its the way that Linux works
     
  3. liam1412

    liam1412 Member

    Joined:
    Oct 5, 2011
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    But we have another cpanel virtual server that is just idling at under 200mb so it doesn't make sense
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    When you posted the output you had, it shows the following:

    The buffers/cache field is what truly matters for memory as Linux will cache memory for later usage. It is only when that cached memory is used when it becomes an issue. You show 190 of that cached memory used and 833 free. There is absolutely nothing wrong with your machine for memory usage at this time.

    Please note that you cannot use the memory line to determine usage due to the caching aspect. The applicable line is buffers/cache in all instances to determine how much is actually being used, which shows only 190MB used and 833MB free.
     
Loading...

Share This Page