Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Troubleshoot high memory usage
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Troubleshoot high memory usage

DVMewopDVMewop Member
edited January 2014 in Help

Hey everyone. I have a 512 mb real / 512mb swap VPS that has pretty high memory usage. I'm running three domains (very low traffic), bind, mysql, apache, and openvpn. I believe openvpnas is the culprit, because I stop it and my free RAM nearly doubles. Here is what I am getting from top:
%Cpu(s): 0.0 us, 0.0 sy, 0.0 ni, 99.5 id, 0.0 wa, 0.0 hi, 0.0 si, 0.5 st
KiB Mem: 524288 total, 395352 used, 128936 free, 0 buffers
KiB Swap: 524288 total, 101308 used, 422980 free, 71452 cached

Sorted by Resident size

PID PPID UID USER RUSER TTY TIME+ %CPU %MEM S COMMAND SWAP RES
11586 1 0 root root ? 0:01.57 0.3 8.4 S python 1000 42m
7576 7128 103 mysql mysql pts/0 0:05.99 0.3 6.5 S mysqld 24m 33m
11819 11068 1001 docvital docvital ? 0:00.34 0.0 6.4 S php5-cgi 0 32m
11603 11586 1006 openvpn_ openvpn_ ? 0:00.95 0.0 6.1 S python 28 31m
11602 11586 0 root root ? 0:00.81 0.0 4.6 S python 1232 23m
11817 11068 1001 docvital docvital ? 0:00.07 0.0 3.2 S php5-cgi 0 16m
11251 11068 1002 andrewan andrewan ? 0:00.14 0.0 3.0 S php5-cgi 32 15m
11612 11586 0 root root ? 0:00.24 0.0 2.8 S python 0 14m
11611 11586 0 root root ? 0:00.26 0.0 2.8 S python 0 14m
11066 1 0 root root ? 0:00.19 0.0 1.8 S apache2 6880 9308

Any guidance as to what to do next?

Comments

  • Have you read http://www.linuxatemyram.com/? Try doing free -m and posting those results.

  • Hello,
    OpenVPN/PPPT Vpn is only uses maximum 40mb, as above shows your memory is captured by apache (fastphp) and mysql. Just use old CGI for php. And you can see your vps normal. I'm using 35 high traffic sites with virtualmin (php as cgi) 1gb RAM.

  • Great. Thanks for the help guys

  • c0yc0y Member

    said: 11066 1 0 root root ? 0:00.19 0.0 1.8 S apache2 6880 9308

    Seems like it isn't showing child processes / threads / forks, which can eat a lot of memory in Apache's case.

Sign In or Register to comment.