Please Help - CPU usage too High with upgraded server !!
Hi there long post so bear with me !!Originally had the following Spec server:-
AMD 2400+
728Mb RAM
2 X 40GB HDs
running RH9.0 CPanel/WHM etc
had a hacking incident and decided that whilst doing a rebuild i would at the same time upgrade the server as i thought i only had a few months growth left in it.
I upgraded to:-
Intel Celeron 2.53Ghz
2 GB RAM
2 X 180GB SATA HDs
running CentOS 3.3
WHM 10.0.0 cPanel 10.0.0-C6
WHM X v3.1.0
Anyways the long and short of it is the CPU Usage is always very high and server response super slow. Memory usage is also excessive with
here is a sample TOP with command line showing and sorted by memory usage:-
22:56:37 up 5:48, 1 user, load average: 9.74, 9.17, 8.75
112 processes: 93 sleeping, 17 running, 1 zombie, 1 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 92.5% 0.0% 7.4% 0.0% 0.0% 0.0% 0.0%
Mem: 2049088k av, 1800104k used, 248984k free, 0k shrd, 133972k buff
963080k actv, 600492k in_d, 33984k in_c
Swap: 1044216k av, 0k used, 1044216k free 1288476k cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
32645 mysql 15 0 28288 27M 1492 S 34.3 1.3 13:43 0 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/neo.cheapukwebhost
29655 root 39 19 12556 12M 1748 S N 0.0 0.6 0:04 0 cpanellogd - setting up logs for seadmin
4094 seadmin 39 19 12556 12M 1748 S N 0.0 0.6 0:00 0 cpanellogd - http logs for seadmin
7809 root 19 0 7492 7492 3876 S 0.0 0.3 0:00 0 whostmgrd - serving 82.214.201.116
29649 root 15 0 7396 7396 3836 S 0.0 0.3 0:00 0 cpsrvd - waiting for connections
2754 root 25 0 6668 6668 1384 S 0.0 0.3 0:00 0 /usr/bin/perl -w /usr/bin/mrtg /etc/mrtg/mrtg.cfg
29660 root 15 0 6536 6536 3428 S 0.0 0.3 0:00 0 cppop - accepting on port 110
6219 root 15 0 5440 5440 2336 S 0.0 0.2 0:00 0 /usr/bin/perl /usr/libexec/webmin/miniserv.pl /etc/webmin/miniserv.conf
29700 mailman 15 0 4780 4780 1908 S 0.0 0.2 0:00 0 /usr/bin/python2 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=OutgoingRunner:0:1 -s
2915 root 15 0 4776 4776 3352 S 65.1 0.2 23:03 0 /usr/local/apache/bin/httpd -DSSL
Here is my /etc/my.cnf file:-
[mysqld]
max_connections = 500
key_buffer = 16M
myisam_sort_buffer_size = 32M
join_buffer_size = 1M
read_buffer_size = 1M
sort_buffer_size = 1M
table_cache = 1500
thread_cache_size = 32
wait_timeout = 14400
connect_timeout = 10
max_allowed_packet = 16M
max_connect_errors = 10
thread_concurrency=4
query_cache_limit = 1M
query_cache_size = 100M
query_cache_type = 1
skip-innodb
log-slow-queries = /var/log/slow_queries.log
#log-long-format
long_query_time = 5
[mysqld_safe]
open_files_limit = 8192
[mysqldump]
quick
max_allowed_packet = 16M
[isamchk]
key_buffer=64M
[isamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=16M
write_buffer=16M
[myisamchk]
key_buffer = 64M
sort_buffer = 64M
read_buffer = 16M
write_buffer = 16M
here is the vars from my httpd.conf:-
RLimitMEM 234259797
RLimitCPU 120
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 15
StartServers 5
MaxClients 400
now according to http://www.xbitlabs.com/articles/cpu...sempron_4.html
my new Server should be quite a bit faster than the old, so how come its running like a dog ???
the server runs around 4-5 fairly busy heavily modded phpnuke sites with prob 2000 uniques overall on the server every day.
Any help gratefully appreciated.