Quote:
Originally posted by jNive
try temporaily turning off keep-alives and reducing the max spare servers/max servers, and restart apache, see if that helps. also you can put limits to apache's memory and cpu usage i believe
|
Server and mysql has already been optimize. Usually at this time of hour CPU usage is below 1 or just a bit above 1.
right now is bouncing in an odd way. One minute it's around 1-2 CPU then next minute it jumps to 10-20 CPU.
This is normal:
03:01:05 up 1:38, 1 user, load average: 1.85, 4.86, 5.90
147 processes: 143 sleeping, 1 running, 2 zombie, 1 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 77.4% 0.0% 7.6% 0.0% 0.9% 0.0% 13.9%
Mem: 1546620k av, 1440308k used, 106312k free, 0k shrd, 43212k buff
1108220k active, 283944k inactive
Swap: 2097136k av, 0k used, 2097136k free 628628k cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
3184 nobody 17 0 18544 12M 9900 S 65.6 0.8 0:46 0 /usr/local/apache/bin/httpd -DSSL
3175 nobody 15 0 17720 12M 9900 S 9.1 0.8 0:51 0 /usr/local/apache/bin/httpd -DSSL
4521 root 17 0 4144 1192 3812 R 3.8 0.0 0:09 0 top
4429 nobody 15 0 16628 11M 9900 S 0.9 0.7 0:07 0 /usr/local/apache/bin/httpd -DSSL
4571 nobody 15 0 16980 11M 9900 S 0.9 0.7 0:00 0 /usr/local/apache/bin/httpd -DSSL
33 root 15 0 0 0 0 SW 0.4 0.0 0:00 0 pdflush
3171 nobody 15 0 21212 15M 9900 S 0.4 1.0 0:25 0 /usr/local/apache/bin/httpd -DSSL
3179 nobody 15 0 18320 12M 9900 S 0.4 0.8 0:48 0 /usr/local/apache/bin/httpd -DSSL
3524 nobody 15 0 18304 12M 9900 S 0.4 0.8 0:40 0 /usr/local/apache/bin/httpd -DSSL
3649 nobody 15 0 17472 11M 9900 S 0.4 0.7 0:22 0 /usr/local/apache/bin/httpd -DSSL
4555 nobody 16 0 19300 13M 9900 S 0.4 0.9 0:04 0 /usr/local/apache/bin/httpd -DSSL
1 root 16 0 1504 504 1352 S 0.0 0.0 0:01 0 init [3]
2 root RT 0 0 0 0 SW 0.0 0.0 0:00 0 migration/0
3 root 34 19 0 0 0 SWN 0.0 0.0 0:00 0 ksoftirqd/0
4 root 5 -10 0 0 0 SW< 0.0 0.0 0:00 0 events/0
5 root 13 -10 0 0 0 SW< 0.0 0.0 0:00 0 khelper
6 root 14 -10 0 0 0 SW< 0.0 0.0 0:00 0 kacpid
21 root 5 -10 0 0 0 SW< 0.0 0.0 0:00 0 kblockd/0
32 root 20 0 0 0 0 SW 0.0 0.0 0:00 0 pdflush
35 root 10 -10 0 0 0 SW< 0.0 0.0 0:00 0 aio/0
34 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 kswapd0
36 root 10 -10 0 0 0 SW< 0.0 0.0 0:00 0 xfslogd/0
37 root 5 -10 0 0 0 SW< 0.0 0.0 0:00 0 xfsdatad/0
38 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 xfsbufd
131 root 6 -10 0 0 0 SW< 0.0 0.0 0:00 0 ata/0
134 root 16 0 0 0 0 SW 0.0 0.0 0:00 0 kseriod
165 root 15 0 0 0 0 SW 0.0 0.0 0:01 0 kjournald
467 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 khubd
944 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
1344 root 15 0 1568 572 1400 S 0.0 0.0 0:00 0 syslogd -m 0
1348 root 15 0 1512 464 1348 S 0.0 0.0 0:00 0 klogd -x
1394 root 17 0 3640 1564 3420 S 0.0 0.1 0:00 0 /usr/sbin/sshd
1406 root 16 0 2128 936 1788 S 0.0 0.0 0:00 0 xinetd -stayalive -pidfile /var/run/xinetd.pid
1425 root 15 0 6104 2760 4704 S 0.0 0.1 0:00 0 chkservd
1479 mailnull 16 0 6604 1876 6144 S 0.0 0.1 0:00 0 /usr/sbin/exim -bd -q60m
Then a few seconds later like 30 seconds it jumps to this:
03:01:59 up 1:39, 1 user, load average: 10.04, 6.16, 6.26
159 processes: 129 sleeping, 27 running, 2 zombie, 1 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 94.1% 0.0% 4.3% 0.3% 1.2% 0.0% 0.0%
Mem: 1546620k av, 1522068k used, 24552k free, 0k shrd, 43316k buff
1189680k active, 283648k inactive
Swap: 2097136k av, 0k used, 2097136k free 630292k cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
4343 nobody 16 0 21540 15M 9900 R 5.5 1.0 0:07 0 /usr/local/apache/bin/httpd -DSSL
1924 mysql 16 0 166M 39M 3756 R 5.2 2.6 0:12 0 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --us
3186 nobody 16 0 21588 15M 9900 R 5.2 1.0 0:47 0 /usr/local/apache/bin/httpd -DSSL
3164 nobody 16 0 21572 15M 9900 R 4.9 1.0 0:39 0 /usr/local/apache/bin/httpd -DSSL
3166 nobody 16 0 21616 15M 9900 R 4.9 1.0 0:46 0 /usr/local/apache/bin/httpd -DSSL
3172 nobody 16 0 21544 15M 9900 R 4.9 1.0 0:26 0 /usr/local/apache/bin/httpd -DSSL
3177 nobody 16 0 21680 15M 9900 R 4.9 1.0 0:44 0 /usr/local/apache/bin/httpd -DSSL
3181 nobody 16 0 21584 15M 9900 R 4.9 1.0 0:30 0 /usr/local/apache/bin/httpd -DSSL
3524 nobody 16 0 21556 15M 9900 R 4.9 1.0 0:40 0 /usr/local/apache/bin/httpd -DSSL
4327 nobody 16 0 21612 15M 9900 R 4.9 1.0 0:09 0 /usr/local/apache/bin/httpd -DSSL
4430 nobody 16 0 21568 15M 9900 R 4.9 1.0 0:10 0 /usr/local/apache/bin/httpd -DSSL
4547 nobody 16 0 21488 15M 9900 R 4.9 1.0 0:00 0 /usr/local/apache/bin/httpd -DSSL
4555 nobody 16 0 21472 15M 9900 R 4.9 1.0 0:05 0 /usr/local/apache/bin/httpd -DSSL
3176 nobody 16 0 21572 15M 9900 R 4.6 1.0 0:36 0 /usr/local/apache/bin/httpd -DSSL
3178 nobody 16 0 21552 15M 9900 R 4.6 1.0 0:40 0 /usr/local/apache/bin/httpd -DSSL
3649 nobody 16 0 21540 15M 9900 R 4.6 1.0 0:23 0 /usr/local/apache/bin/httpd -DSSL
3173 nobody 16 0 21608 15M 9900 R 4.3 1.0 0:37 0 /usr/local/apache/bin/httpd -DSSL
1862 mysql 15 0 166M 39M 3756 S 2.7 2.6 0:12 0 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --us
3185 nobody 16 0 20604 15M 9900 R 2.1 0.9 0:47 0 /usr/local/apache/bin/httpd -DSSL
4521 root 16 0 4144 1196 3812 R 2.1 0.0 0:10 0 top
3175 nobody 16 0 17724 12M 9900 R 1.8 0.8 0:51 0 /usr/local/apache/bin/httpd -DSSL
3187 nobody 15 0 17452 11M 9900 S 0.6 0.7 0:41 0 /usr/local/apache/bin/httpd -DSSL
4769 nobody 15 0 14916 9532 9900 S 0.6 0.6 0:00 0 /usr/local/apache/bin/httpd -DSSL
4770 nobody 15 0 11452 5944 9900 S 0.6 0.3 0:00 0 /usr/local/apache/bin/httpd -DSSL
4771 nobody 15 0 11392 5860 9900 S 0.6 0.3 0:00 0 /usr/local/apache/bin/httpd -DSSL
2442 mailnull 15 0 113M 109M 6120 S 0.3 7.2 0:21 0 /usr/bin/perl -I/usr/mailscanner/lib /usr/mailscanner/bin/
2444 mailnull 15 0 113M 109M 6120 S 0.3 7.2 0:20 0 /usr/bin/perl -I/usr/mailscanner/lib /usr/mailscanner/bin/
3171 nobody 16 0 21212 15M 9900 S 0.3 1.0 0:25 0 /usr/local/apache/bin/httpd -DSSL
3183 nobody 15 0 17488 11M 9900 S 0.3 0.7 0:33 0 /usr/local/apache/bin/httpd -DSSL
4429 nobody 15 0 18300 12M 9900 S 0.3 0.8 0:07 0 /usr/local/apache/bin/httpd -DSSL
4774 nobody 15 0 11264 5368 9900 S 0.3 0.3 0:00 0 /usr/local/apache/bin/httpd -DSSL
1 root 15 0 1504 504 1352 S 0.0 0.0 0:01 0 init [3]
2 root RT 0 0 0 0 SW 0.0 0.0 0:00 0 migration/0
3 root 34 19 0 0 0 SWN 0.0 0.0 0:00 0 ksoftirqd/0
4 root 5 -10 0 0 0 SW< 0.0 0.0 0:00 0 events/0
It keeps going back and forth like that all night today. What the hell is going on?