Very High swap memory usage

Started by sobayyal, August 14, 2020, 07:30:34 PM

Previous topic - Next topic

sobayyal

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

Igor S.

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.



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services

cinique

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.

Igor S.

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



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services

PiotrE

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.


Sandeep

if you increase physical ram swap memory usage will be lowered that means you need more RAM sooner or later.