Page 2 of 2

Re: high ram usage?

Posted: Thu Apr 17, 2014 12:14 am
by jtothez
bump, any ideas here...is this typical ram usage of what others are seeing?

Re: high ram usage?

Posted: Thu Apr 17, 2014 10:44 am
by mephivio
Hi

Have a look at this post :viewtopic.php?f=11&t=4758&start=10
(page 2)

there is a soluce witch works fine for me !

cool

Re: high ram usage?

Posted: Sat Apr 19, 2014 9:17 am
by misak35
I have problem i think with this too. I use 512mb ram and here is

Code: Select all

free -m
                  total       used       free     shared    buffers     cached
Mem:           512        378        133          0          0        156
-/+ buffers/cache:        221        290
Swap:          512          1        510
top said:

Code: Select all

Tasks:  46 total,   1 running,  45 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.0%us,  0.0%sy,  0.0%ni, 99.9%id,  0.0%wa,  0.0%hi,  0.0%si,  0.1%st
Mem:    524288k total,   379932k used,   144356k free,        0k buffers
Swap:   524288k total,     1200k used,   523088k free,   152444k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND            
18538 root      20   0  2308 1040  836 R  0.3  0.2   0:00.01 top                
    1 root      20   0  2176  652  556 S  0.0  0.1   0:00.28 init               
    2 root      20   0     0    0    0 S  0.0  0.0   0:00.00 kthreadd/3864      
    3 root      20   0     0    0    0 S  0.0  0.0   0:00.00 khelper/3864       
  116 root      16  -4  2280  568  348 S  0.0  0.1   0:00.00 udevd              
  475 root      20   0  1832  536  468 S  0.0  0.1   0:00.08 syslogd            
  497 named     20   0 60744 2212 1188 S  0.0  0.4   0:00.33 named              
  527 root      20   0  7328  932  576 S  0.0  0.2   0:00.00 sshd               
  535 root      20   0  2852  576  564 S  0.0  0.1   0:00.00 xinetd             
  546 root      20   0  5328  288  188 S  0.0  0.1   0:00.00 vsftpd             
  583 root      20   0  2568 1180  992 S  0.0  0.2   0:00.01 mysqld_safe        
 1047 mysql     20   0  363m  94m 4900 S  0.0 18.4   0:48.72 mysqld             
 1086 root      20   0  1984  504  384 S  0.0  0.1   0:01.57 dovecot            
 1088 root      20   0  7868 1760 1284 S  0.0  0.3   0:00.99 dovecot-auth       
 1100 exim      20   0 12360 1176  588 S  0.0  0.2   0:00.00 exim               
 1112 root      20   0  134m  10m 5592 S  0.0  2.1   0:01.33 httpd              
 1120 root      20   0 27544 1584  308 S  0.0  0.3   0:00.00 nginx  

Re: high ram usage?

Posted: Sat Apr 19, 2014 9:20 am
by misak35

Code: Select all

 cat /proc/meminfo
MemTotal:         524288 kB
MemFree:          155852 kB
Cached:           141092 kB
Buffers:               0 kB
Active:           155784 kB
Inactive:         197996 kB
Active(anon):     101220 kB
Inactive(anon):   111468 kB
Active(file):      54564 kB
Inactive(file):    86528 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:        524288 kB
SwapFree:         523088 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:        212688 kB
Shmem:             33900 kB
Slab:              14644 kB
SReclaimable:       6532 kB
SUnreclaim:         8112 kB

Re: high ram usage?

Posted: Sun Mar 06, 2016 3:40 am
by pandabb
Hello, can somone again interpret the free m usage, for centos 7 is quite different.

Image

Does this mean that my ACTUAL available memory is 2186 only or should i add 571 under the "free" row ?


thanks

Re: high ram usage?

Posted: Sun Mar 06, 2016 7:46 am
by kmore
Actual Free Memory = Free (571 MB) + Buffers/Cached (1892 MB) = 2,463 MB

Re: high ram usage?

Posted: Sun Mar 06, 2016 3:26 pm
by pandabb
thank you sir!

This is way too much

Posted: Sun Nov 27, 2016 11:40 pm
by Aldoseri
Here are my readings

free -m
- - - total used free shared buffers cached
Mem: 32105 23714 8391 129 2327 19314
-/+ buffers/cache: 2072 30033
Swap: 16367 0 16367


I'm using Nginx + php-fpm - Only one Wordpress installation. when I was using virtualmin with Apache, memory usage never exceeded 9%

Re: high ram usage?

Posted: Mon Nov 28, 2016 3:33 pm
by skid
Ooops! Thanks for rising this. Unfortunately there is a bug in current version. New memory function ignores available cached/buffered memory. I can assure you that the real memory consumption on your server hasn't changed since release. Bugfix will be available soon.

Old method:

Code: Select all

[root@r6 ~]# free -m |awk '{print $4}'|head -n3 |tail -n1
404
New method:

Code: Select all

[root@r6 ~]# free -m |grep Mem |awk '{print $4}'
98