unsichtbare
6th January 2008, 06:13
My server seems to have unusually high load for a webserver hosting about 7 sites with almost no traffic. Can anyone explain why Apache runs at 100% (or close) most of the time?
Here are the specs: Ubuntu 7.0.4 (The Perfect etup) ISP Config, 1GB RAM, 2-2.4ghz proc.
results of top:
top - 21:17:51 up 1:57, 1 user, load average: 1.53, 1.45, 1.41
Tasks: 92 total, 4 running, 88 sleeping, 0 stopped, 0 zombie
Cpu(s): 99.7%us, 0.3%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 1035704k total, 665192k used, 370512k free, 25296k buffers
Swap: 1759076k total, 0k used, 1759076k free, 432816k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4862 www-data 25 0 55552 25m 4832 R 100 2.6 16:54.68 apache2
6523 www-data 25 0 55528 26m 4520 R 100 2.6 4:30.78 apache2
6176 root 15 0 8028 2452 1996 R 0 0.2 0:02.41 sshd
1 root 18 0 2908 1844 524 S 0 0.2 0:05.64 init
2 root RT 0 0 0 0 S 0 0.0 0:00.11 migration/0
3 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/0
4 root RT 0 0 0 0 S 0 0.0 0:00.01 watchdog/0
5 root RT 0 0 0 0 S 0 0.0 0:00.22 migration/1
6 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/1
7 root RT 0 0 0 0 S 0 0.0 0:00.00 watchdog/1
8 root 10 -5 0 0 0 S 0 0.0 0:00.02 events/0
9 root 10 -5 0 0 0 S 0 0.0 0:00.06 events/1
10 root 10 -5 0 0 0 S 0 0.0 0:00.16 khelper
11 root 10 -5 0 0 0 S 0 0.0 0:00.01 kthread
35 root 10 -5 0 0 0 S 0 0.0 0:00.10 kblockd/0
36 root 11 -5 0 0 0 S 0 0.0 0:04.59 kblockd/1
37 root 16 -5 0 0 0 S 0 0.0 0:00.00 kacpid
38 root 16 -5 0 0 0 S 0 0.0 0:00.00 kacpi_notify
94 root 10 -5 0 0 0 S 0 0.0 0:00.03 kseriod
115 root 16 0 0 0 0 S 0 0.0 0:00.00 pdflush
116 root 15 0 0 0 0 S 0 0.0 0:03.10 pdflush
117 root 11 -5 0 0 0 S 0 0.0 0:00.00 kswapd0
118 root 11 -5 0 0 0 S 0 0.0 0:00.00 aio/0
119 root 11 -5 0 0 0 S 0 0.0 0:00.00 aio/1
749 root 15 0 0 0 0 S 0 0.0 0:00.01 kirqd
1866 root 16 -5 0 0 0 S 0 0.0 0:00.00 ata/0
1868 root 16 -5 0 0 0 S 0 0.0 0:00.00 ata/1
1870 root 16 -5 0 0 0 S 0 0.0 0:00.00 ata_aux
1940 root 15 -5 0 0 0 S 0 0.0 0:00.00 scsi_eh_0
2093 root 10 -5 0 0 0 S 0 0.0 0:05.43 kjournald
2224 root 21 -4 2296 616 356 S 0 0.1 0:03.02 udevd
3002 root 14 -5 0 0 0 S 0 0.0 0:00.00 kpsmoused
3603 root 18 0 1648 508 440 S 0 0.0 0:00.02 getty
3604 root 18 0 1652 512 440 S 0 0.0 0:00.03 getty
3606 root 18 0 1652 512 440 S 0 0.0 0:00.03 getty
3607 root 18 0 1652 508 440 S 0 0.0 0:00.04 getty
3610 root 18 0 1652 508 440 S 0 0.0 0:00.03 getty
-John
Here are the specs: Ubuntu 7.0.4 (The Perfect etup) ISP Config, 1GB RAM, 2-2.4ghz proc.
results of top:
top - 21:17:51 up 1:57, 1 user, load average: 1.53, 1.45, 1.41
Tasks: 92 total, 4 running, 88 sleeping, 0 stopped, 0 zombie
Cpu(s): 99.7%us, 0.3%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 1035704k total, 665192k used, 370512k free, 25296k buffers
Swap: 1759076k total, 0k used, 1759076k free, 432816k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4862 www-data 25 0 55552 25m 4832 R 100 2.6 16:54.68 apache2
6523 www-data 25 0 55528 26m 4520 R 100 2.6 4:30.78 apache2
6176 root 15 0 8028 2452 1996 R 0 0.2 0:02.41 sshd
1 root 18 0 2908 1844 524 S 0 0.2 0:05.64 init
2 root RT 0 0 0 0 S 0 0.0 0:00.11 migration/0
3 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/0
4 root RT 0 0 0 0 S 0 0.0 0:00.01 watchdog/0
5 root RT 0 0 0 0 S 0 0.0 0:00.22 migration/1
6 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/1
7 root RT 0 0 0 0 S 0 0.0 0:00.00 watchdog/1
8 root 10 -5 0 0 0 S 0 0.0 0:00.02 events/0
9 root 10 -5 0 0 0 S 0 0.0 0:00.06 events/1
10 root 10 -5 0 0 0 S 0 0.0 0:00.16 khelper
11 root 10 -5 0 0 0 S 0 0.0 0:00.01 kthread
35 root 10 -5 0 0 0 S 0 0.0 0:00.10 kblockd/0
36 root 11 -5 0 0 0 S 0 0.0 0:04.59 kblockd/1
37 root 16 -5 0 0 0 S 0 0.0 0:00.00 kacpid
38 root 16 -5 0 0 0 S 0 0.0 0:00.00 kacpi_notify
94 root 10 -5 0 0 0 S 0 0.0 0:00.03 kseriod
115 root 16 0 0 0 0 S 0 0.0 0:00.00 pdflush
116 root 15 0 0 0 0 S 0 0.0 0:03.10 pdflush
117 root 11 -5 0 0 0 S 0 0.0 0:00.00 kswapd0
118 root 11 -5 0 0 0 S 0 0.0 0:00.00 aio/0
119 root 11 -5 0 0 0 S 0 0.0 0:00.00 aio/1
749 root 15 0 0 0 0 S 0 0.0 0:00.01 kirqd
1866 root 16 -5 0 0 0 S 0 0.0 0:00.00 ata/0
1868 root 16 -5 0 0 0 S 0 0.0 0:00.00 ata/1
1870 root 16 -5 0 0 0 S 0 0.0 0:00.00 ata_aux
1940 root 15 -5 0 0 0 S 0 0.0 0:00.00 scsi_eh_0
2093 root 10 -5 0 0 0 S 0 0.0 0:05.43 kjournald
2224 root 21 -4 2296 616 356 S 0 0.1 0:03.02 udevd
3002 root 14 -5 0 0 0 S 0 0.0 0:00.00 kpsmoused
3603 root 18 0 1648 508 440 S 0 0.0 0:00.02 getty
3604 root 18 0 1652 512 440 S 0 0.0 0:00.03 getty
3606 root 18 0 1652 512 440 S 0 0.0 0:00.03 getty
3607 root 18 0 1652 508 440 S 0 0.0 0:00.04 getty
3610 root 18 0 1652 508 440 S 0 0.0 0:00.03 getty
-John