Astral God

Well-Known Member
Sep 27, 2010
180
0
66
127.0.0.1
cPanel Access Level
Root Administrator
Hi.

My server (VPS) was hosted on a Virtuozzo container with 1GB (2 Burst) but i was having some problem with some restirction (inodes, dcachesize...) so i've moved to another VPS under KVM this time, with 2GB guaranteed RAM.

I have the same number of sites (less than 20), with the same load, but the 2nd one is constantly swapping and i can't understand why ... :(

I have the same applications:

  • ConfigServer Explorer
  • ConfigServer Mail Manage
  • ConfigServer Mail Queues
  • ConfigServer MailScanner FE
  • ConfigServer ModSec Control
  • ConfigServer eXploit Scanner
  • ConfigServer Security&Firewall
  • Mod Security
  • Munin Service Monitor

With PHP (Prefork), Apache and MySQL under WHM Stable. my.cnf as the same optimization:

Code:
[mysqld]
skip-networking
slow_query_log
safe-show-database
local-infile = 0
innodb_file_per_table = 1
thread_cache_size = 4
Under this server, i'm not hosting DNS but i was using NSD on 1st server, so i just can't understand why the server is swapping...

 
Last edited:

pwhjenny

Well-Known Member
Aug 31, 2012
138
0
91
cPanel Access Level
Root Administrator
Yep, just optimizing system does not works everytime. You have to detect what application taking high resources. Use following commands..

top -c
shift + m sort by memory

mysql -e 'show processlist'