I recently had to move my internal web servers to a new server. New server runs on Centos 7. My Apache httpd remains the same , also the same with php. Server version:
Apache/2.4.6 (Unix)
PHP 5.4.16
Web servers run fine ( they are Wordpress and dokuwiki) , except httpd consumes more and more memory over the last few days.
total used free shared buffers cached
Mem: 5663 5508 154 43 99 435
-/+ buffers/cache: 4973 689
Swap: 6143 158 5985
Also I've also increased the swapiness from 30 to 60 but that hardly made any improvements. Sorting through, it is the httpd that takes up the biggest chunks of memory.Appreciate any suggestions. Thanks in advance.
free -m;sync;echo 3 > /proc/sys/vm/drop_caches;free -mand check free again. The 'used' column under buffers/cache is not just userland. Dirty pages that need to be flushed to disk (like buffering disk writes) will not show up under free unless / until they're flushed. I see this regularly on systems of mine with heavy NFS usage (lots of small files, thousands of directories). @kc123 Can you also runtop -aband add that output? It'll run top once, sorting by allocated memory. – Feb 02 '15 at 21:24