Control Web Panel
WebPanel => CentOS 7 Problems => Topic started by: sobayyal on August 14, 2020, 07:30:34 PM
-
Hi there Can you please tell me how to solve it that i have installed CWP on my vps and after few days its using 100% of swap memory and also have 103 process in running state i dont knw what happening and my site also workin slowly
please guide me what to do
1 vCore 2.4 GHz
RAM (with cache) : 1.59GB / 2GB
RAM (Without Cache) : 1.42GB / 2GB
Swap : 0.25GB / 0.25GB (100%)
Space : 08GB / 20GB SSD
-
Hi.
You have too low memory. That is the okay OS used many SWAP, I would recommend to add 2Gb RAM and delete the swap.
-
Yup, through money at it (more RAM), rather than fix the root cause. /sarcasm
I'll bet that no system tuning has been done.
I run a few instances of CWP on 2GB RAM and even some on 1GB, without excessive swapping.
CWP can make running a server easier but is no substitute from learning how to be a sysadmin.
-
You can configure the swap in your OS.
Try to read more detailed about swap config by the link: https://access.redhat.com/solutions/103833
-
For future reference - to set swapiness to 1 (use only whan much needed)
To check what parameter is set now:
# sysctl vm.swappiness
vm.swappiness = 30
Temporaly set
# sysctl -w vm.swappiness=1
Permamently (need reboot) - edit file:
# nano /etc/sysctl.conf
and put:
vm.swappiness = 1
and reboot.
-
if you increase physical ram swap memory usage will be lowered that means you need more RAM sooner or later.