mysql - CentOS memory usage. About 22GB of RAM used from 22GB available -


for several months have problem physical shared hosting server. there 24gb of ram on dedicated server 8 cores cpu. have problem memory leaks. wrong setup maybe, or hardware configuration. need find reason. after rebooting of server have 22gb of free ram , during day it's time increases. i'm watching via top, sar, ps other task managers, can't find tasks, totally eating memory. have ~40 mb of free memory 24gb. swap 512 mb sar shows me 0.2% of usage.

root@srv [~]# free -m              total       used       free     shared    buffers     cached mem:         24149      23689        459          0       2958      17862 -/+ buffers/cache:       2868      21280 swap:          513          0        512 

also top results:

mem:  24728844k total, 24463380k used,   265464k free,  3029508k buffers swap:   525916k total,      816k used,   525100k free, 18316304k cached    pid user      pr  ni  virt  res  shr s %cpu %mem    time+  command  6307 someuser  20   0  151m  55m 6068 s 18.0  0.2   0:00.54 php  6313 someuser  20   0  144m  50m 5908 r 12.3  0.2   0:00.37 php  6316 someuser  20   0  141m  46m 5700 r  9.3  0.2   0:00.28 php  6991 mysql     20   0  545m 249m 5740 s  9.0  1.0  24:41.08 mysqld  6310 someuser  20   0  713m  62m  30m s  7.6  0.3   0:00.23 php    25 root      20   0     0    0    0 s  0.3  0.0   0:07.15 ksoftirqd/6  5012 nobody    20   0 71220 5580 1868 s  0.3  0.0   0:00.04 httpd  6036 nobody    20   0 71372 5640 1768 s  0.3  0.0   0:00.01 httpd  6056 root      20   0 12804 1228  840 r  0.3  0.0   0:00.05 top 

i know, applications can use lot of memory, are? stopping apache or mysql didn't too. have server 64gb of ram. after week of interruptible running , hard using there 30gb available 64gb. why so? how can calculate ratio between physical memory \ used buffers etc.? , how can decreased? how can determine how resources uses each application? if install application requires e.g. 6gb of ram?

linux aggressively uses free memory caches , buffers. if applications need memory, kernel gladly hand over.

look @ 3rd line of output free -m, 1 labelled -/+ buffers/cache: -- that's accurate representation of how memory "free".

see: http://www.linuxatemyram.com/


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -