Hello dear cPanel users,
on WHM server i found im using 100% of swap.
# free -m
total used free shared buffers cached
Mem: 17500 10805 6694 0 0 5934
-/+ buffers/cache: 4871 12628
Swap: 1024 1024 0
i read that someone adviced restarting mysql, httpd and i instantly i thought mysql is cause in my case. after restart, i see:
# free -m
total used free shared buffers cached
Mem: 17500 7366 10133 0 0 5991
-/+ buffers/cache: 1374 16125
Swap: 1024 11 1012
So it is back almost empty..
one can sort processes by ram usage by doing:
1) top -c
2) F key
3) o key
4) enter key
please what steps do you suggest to prevent swap being filled by mysql?
i have centos, mysql, i already ran mysqltunning scripts, here is my.cnf file
thank you
on WHM server i found im using 100% of swap.
# free -m
total used free shared buffers cached
Mem: 17500 10805 6694 0 0 5934
-/+ buffers/cache: 4871 12628
Swap: 1024 1024 0
i read that someone adviced restarting mysql, httpd and i instantly i thought mysql is cause in my case. after restart, i see:
# free -m
total used free shared buffers cached
Mem: 17500 7366 10133 0 0 5991
-/+ buffers/cache: 1374 16125
Swap: 1024 11 1012
So it is back almost empty..
one can sort processes by ram usage by doing:
1) top -c
2) F key
3) o key
4) enter key
please what steps do you suggest to prevent swap being filled by mysql?
i have centos, mysql, i already ran mysqltunning scripts, here is my.cnf file
thank you
Last edited: