The apache service use more server's resource, just have one site on this server but server load is high, anyone can advice? Thanks.
my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
skip-locking
skip-innodb
query_cache_limit=1M
query_cache_size=32M
query_cache_type=1
max_user_connections=25
max_connections=500
interactive_timeout=10
wait_timeout=10
connect_timeout=10
thread_cache_size=166
key_buffer=16M
join_buffer=1M
max_allowed_packet=16M
table_cache=1024
record_buffer=1M
sort_buffer_size=2M
read_buffer_size=2M
max_connect_errors=10
# Try number of CPU's*2 for thread_concurrency
thread_concurrency=8
myisam_sort_buffer_size=64M
#log-bin
server-id=1
[mysql.server]
user=mysql
basedir=/var/lib
[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/lib/mysql/mysql.pid
open_files_limit=8192
[mysqldump]
quick
max_allowed_packet=16M
[mysql]
no-auto-rehash
#safe-updates
[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
[mysqlhotcopy]
interactive-timeout
httpd.conf
Timeout 300
KeepAlive Off
MaxKeepAliveRequests 0
KeepAliveTimeout 2
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 200
MaxRequestsPerChild 500
User nobody
Group nobody
top
154 processes: 152 sleeping, 1 running, 1 zombie, 0 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 65.2% 0.0% 9.8% 0.0% 0.0% 0.0% 124.8%
cpu00 25.3% 0.0% 7.4% 0.0% 0.0% 0.0% 67.1%
cpu01 39.8% 0.0% 2.3% 0.0% 0.0% 0.0% 57.7%
Mem: 1031952k av, 785320k used, 246632k free, 0k shrd, 80936k buff
371288k active, 291116k inactive
Swap: 1831400k av, 38688k used, 1792712k free 255696k cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
5497 root 16 0 5840 5840 5692 S 43.8 0.5 0:13 1 httpd
2809 mysql 15 0 56012 53M 20900 S 8.4 5.3 176:11 0 mysqld
5575 nobody 15 0 0 0 0 Z 2.7 0.0 0:00 0 httpd <defunct>
5574 root 17 0 1272 1272 896 R 1.7 0.1 0:00 0 top
8338 root 16 0 1984 1816 1664 S 0.1 0.1 0:04 0 sshd
12784 named 19 0 2304 2008 1504 S 0.1 0.1 0:00 1 named
1 root 16 0 424 392 372 S 0.0 0.0 0:06 1 init
2 root RT 0 0 0 0 SW 0.0 0.0 0:00 0 swapper
3 root RT 0 0 0 0 SW 0.0 0.0 0:00 1 swapper
4 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 keventd
5 root 34 19 0 0 0 SWN 0.0 0.0 0:00 0 ksoftirqd/0
6 root 34 19 0 0 0 SWN 0.0 0.0 0:00 1 ksoftirqd/1
8 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 bdflush
7 root 16 0 0 0 0 SW 0.0 0.0 0:23 0 kswapd
9 root 15 0 0 0 0 SW 0.0 0.0 0:05 0 kupdated
10 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 mdrecoveryd
19 root 15 0 0 0 0 SW 0.0 0.0 0:40 0 kjournald
81 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 khubd
1184 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
1625 root 16 0 576 556 536 S 0.0 0.0 0:08 1 syslogd
1629 root 16 0 392 384 384 S 0.0 0.0 0:01 0 klogd
1640 root 16 0 364 360 308 S 0.0 0.0 0:04 1 irqbalance
2574 root 17 0 1172 1092 1056 S 0.0 0.1 0:05 0 sshd
2590 root 16 0 760 720 676 S 0.0 0.0 0:00 1 xinetd
2610 root 15 0 3208 2196 1772 S 0.0 0.2 0:03 1 chkservd
2730 root 16 0 608 596 544 S 0.0 0.0 0:00 1 crond
2752 root 18 0 1036 900 900 S 0.0 0.0 0:00 0 mysqld_safe
2924 mailnull 16 0 4704 2964 2012 S 0.0 0.2 0:17 1 eximstats
3030 cpanel 17 0 1240 928 928 S 0.0 0.0 0:00 0 stunnel-4.04loc
3040 dbus 16 0 604 520 520 S 0.0 0.0 0:00 1 dbus-daemon-1
3066 root 18 0 456 400 400 S 0.0 0.0 0:00 0 portsentry
3082 root 18 0 344 300 300 S 0.0 0.0 0:00 0 mingetty
3083 root 18 0 348 300 300 S 0.0 0.0 0:00 0 mingetty
3084 root 18 0 348 300 300 S 0.0 0.0 0:00 0 mingetty
3085 root 18 0 348 300 300 S 0.0 0.0 0:00 0 mingetty
3086 root 18 0 348 300 300 S 0.0 0.0 0:00 0 mingetty
3087 root 18 0 344 300 300 S 0.0 0.0 0:00 0 mingetty
8343 root 15 0 1368 1316 1148 S 0.0 0.1 0:00 0 bash
9201 root 35 19 6656 5492 3592 S N 0.0 0.5 0:00 0 cpanellogd
9205 root 15 0 4652 1984 1476 S 0.0 0.1 0:00 0 cppop
9220 root 15 0 5420 1936 1488 S 0.0 0.1 0:00 1 cpsrvd
12700 mailnull 15 0 1604 1532 1372 S 0.0 0.1 0:00 1 exim
12705 mailnull 23 0 1552 1480 1324 S 0.0 0.1 0:00 1 exim
12722 root 18 0 23356 19M 11388 S 0.0 1.9 0:00 0 spamd
12743 root 16 0 1624 1516 1288 S 0.0 0.1 0:00 0 antirelayd
12746 root 16 0 23840 20M 11308 S 0.0 2.0 0:00 0 spamd
12747 root 16 0 23836 20M 11336 S 0.0 2.0 0:00 1 spamd
12748 root 17 0 23836 20M 11336 S 0.0 2.0 0:00 1 spamd
12749 root 16 0 23840 20M 11476 S 0.0 2.0 0:00 0 spamd
12750 root 16 0 23840 20M 11472 S 0.0 2.0 0:00 1 spamd
13445 root 16 0 1668 1484 1420 S 0.0 0.1 0:00 1 pure-ftpd
13449 root 18 0 584 488 488 S 0.0 0.0 0:00 1 pure-authd
27725 root 16 0 1212 1104 996 S 0.0 0.1 0:00 0 postsuexecinsta
5447 mailman 21 0 4764 4760 2016 S 0.0 0.4 0:00 1 mailmanctl
5451 mailman 16 0 4648 4644 1896 S 0.0 0.4 0:00 0 python2
5452 mailman 16 0 4720 4716 1936 S 0.0 0.4 0:00 0 python2
5453 mailman 16 0 4712 4708 1936 S 0.0 0.4 0:00 1 python2
5454 mailman 16 0 4708 4704 1936 S 0.0 0.4 0:00 1 python2



LinkBack URL
About LinkBacks
Reply With Quote







