I have a VPS with 4 GB of ram and 8 cores and about 200K Visits per day. I have DirectAdmin Installed and I always see a huge number of PIDs for httpd and mysqld in DirectAdmin Service Monitor.
e.g. about 40 number of PIDs for mysqld and it increases in a while. I have CSF installed and configured httpd.conf/my.cnf sometimes this load prevents the server from responding and it freezes.
Administrators installed 32bit Centos and defined only 512 MB for SWAP
Swap: 524280 4 524276
any ideas to fix this ?
Thanks
mysqld
andhttpd
processes?msqld
andhttpd
procs are normal. Swap is only used when your RAM is maxed out, and it needs more memory. If you're not hitting your limit on RAM, then you need to look elsewhere for the source of your problems. From what you've posted, low swap size doesn't look to be the issue at hand. However, if you really want to increase the swap size, I've listed some guides below to help.