occasionally my server hits 100% usage on virtual memory and I don't know if that is something alarming or not? ( this happends gradualy to fill to that percent over 1-2 weeks from clean swap)
I usually resolve this issue like this:
swapoff -a && swapon -a
do you suggest any other method of resolving this?
I tried to see what is in swap and clearly it's php-cgi
or each sites processes that runs on my server..
after I run this:
for file in /proc/*/status ; do awk '/VmSwap|Name/{printf $2 " " $3}END{ print ""}' $file; done | sort -k 2 -n -r | less
I get this result:
miniserv.pl 17096 kB
php-cgi7.0 15732 kB
php-cgi7.0 15532 kB
php-cgi7.0 13768 kB
php-cgi7.0 13532 kB
php-cgi7.0 13300 kB
php-cgi7.0 12056 kB
php-cgi7.0 11004 kB
php-cgi7.0 9636 kB
php-cgi7.0 4712 kB
php-cgi7.0 3700 kB
php-cgi7.0 3600 kB
php-cgi7.0 3288 kB
php-cgi7.0 3100 kB
php-cgi7.0 3084 kB
php-cgi7.0 3040 kB
php-cgi7.0 2824 kB
php-cgi7.0 2756 kB
(sd-pam) 2580 kB
php-cgi7.0 2524 kB
php-cgi7.0 2524 kB
(sd-pam) 2280 kB
(sd-pam) 2192 kB
php-loop.pl 2076 kB
php-loop.pl 2076 kB
php-loop.pl 2072 kB
php-loop.pl 2072 kB
php-loop.pl 2072 kB
php-loop.pl 2072 kB
php-loop.pl 2072 kB
php-loop.pl 2072 kB
(sd-pam) 2036 kB
php-loop.pl 1976 kB
php-loop.pl 1964 kB
php-loop.pl 1964 kB
php-loop.pl 1964 kB
php-loop.pl 1960 kB
php-loop.pl 1956 kB
php-loop.pl 1956 kB
php-loop.pl 1948 kB
php-loop.pl 1940 kB
php-loop.pl 1920 kB
php-loop.pl 1908 kB
php-loop.pl 1908 kB
php-loop.pl 1904 kB
php-loop.pl 1872 kB