- 论坛徽章:
- 0
|
2个服务器的top:
从cpu,内存,io,线程数上的运行情况分析,2个服务器运行状况都差不多,但是为什么load average 就差这么多呢? 谢谢
第一个服务器,负载很低:
4:12pm up 871 days, 6:53, 13 users, load average: 0.86, 0.90, 0.74
794 processes: 793 sleeping, 1 running, 0 zombie, 0 stopped
CPU0 states: 7.5% user, 1.0% system, 6.3% nice, 91.3% idle
CPU1 states: 5.1% user, 20.0% system, 4.2% nice, 74.2% idle
Mem: 1030524K av, 993712K used, 36812K free, 0K shrd, 9168K buff
Swap: 2048248K av, 965444K used, 1082804K free 109752K cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
4165 prod 21 0 1996 1996 800 R 19.8 0.1 0:07 top
22209 mosrv 20 5 199M 161M 8484 S N 4.1 16.0 5:46 java
22231 mosrv 20 5 199M 161M 8484 S N 3.5 16.0 3:36 java
22230 mosrv 20 5 199M 161M 8484 S N 1.7 16.0 3:36 java
1684 mosrv 20 5 199M 161M 8484 S N 1.2 16.0 0:05 java
4100 prod_con 16 0 61148 59M 6796 S 0.6 5.9 0:02 java
24627 root 20 5 9596 5884 1320 S N 0.3 0.5 417:22 rmiregistry
17938 mosrv 20 5 164M 76M 5980 S N 0.3 7.5 2:48 java
9549 mosrv 20 5 45024 32M 21320 S N 0.3 3.1 0:16 java
22241 mosrv 20 5 199M 161M 8484 S N 0.3 16.0 0:25 java
4107 prod_con 15 0 61148 59M 6796 S 0.3 5.9 0:00 java
4170 mosrv 20 5 164M 76M 5980 S N 0.3 7.5 0:00 java
4251 mosrv 20 5 164M 76M 5980 S N 0.3 7.5 0:00 java
7 root 15 0 0 0 0 SW 0.1 0.0 1334m kswapd
28637 prod 20 5 10532 4460 2136 S N 0.1 0.4 48:42 java
28690 prod 20 5 10532 4460 2136 S N 0.1 0.4 56:50 java
2587 mosrv 20 5 91592 44M 7992 S N 0.1 4.4 0:32 java
3528 prod 20 5 16104 12M 4084 S N 0.1 1.2 0:09 java
3532 prod 20 5 16104 12M 4084 S N 0.1 1.2 0:01 java
3552 prod 20 5 16104 12M 4084 S N 0.1 1.2 0:09 java
3553 prod 20 5 16104 12M 4084 S N 0.1 1.2 0:09 java
3554 prod 20 5 16104 12M 4084 S N 0.1 1.2 0:09 java
3565 prod 20 5 16104 12M 4084 S N 0.1 1.2 0:09 java
3569 prod 20 5 16104 12M 4084 S N 0.1 1.2 0:01 java
3590 prod 20 5 16104 12M 4084 S N 0.1 1.2 0:11 java
16843 mosrv 20 5 17596 12M 10312 S N 0.1 1.2 0:01 java
16890 mosrv 20 5 18720 14M 7908 S N 0.1 1.4 0:06 java
16892 mosrv 20 5 18720 14M 7908 S N 0.1 1.4 0:05 java
16896 mosrv 20 5 18720 14M 7908 S N 0.1 1.4 0:05 java
2481 mosrv 20 5 199M 161M 8484 S N 0.1 16.0 0:00 java
4102 prod_con 15 0 61148 59M 6796 S 0.1 5.9 0:01 java
4127 root 15 0 2040 1984 1464 S 0.1 0.1 0:00 sshd
4172 mosrv 20 5 164M 76M 5980 S N 0.1 7.5 0:00 java
1 root 15 0 128 84 68 S 0.0 0.0 11:06 init
2 root 0K 0 0 0 0 SW 0.0 0.0 0:00 migration_CPU0
3 root 0K 0 0 0 0 SW 0.0 0.0 0:00 migration_CPU1
4 root 15 0 0 0 0 SW 0.0 0.0 1:34 keventd
5 root 34 19 0 0 0 SWN 0.0 0.0 18:20 ksoftirqd_CPU0
6 root 34 19 0 0 0 SWN 0.0 0.0 18:17 ksoftirqd_CPU1
8 root 15 0 0 0 0 SW 0.0 0.0 0:10 bdflush
9 root 15 0 0 0 0 SW 0.0 0.0 21:07 kupdated
10 root 25 0 0 0 0 SW 0.0 0.0 0:00 mdrecoveryd
16 root 25 0 0 0 0 SW 0.0 0.0 0:00 scsi_eh_0
19 root 15 0 0 0 0 SW 0.0 0.0 122:46 kjournald
第二个服务器,负载很高:
16:15:20 up 448 days, 1:01, 2 users, load average: 24.38, 24.73, 24.88
765 processes: 762 sleeping, 1 running, 2 zombie, 0 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 4.3% 0.0% 9.8% 0.0% 0.1% 0.2% 85.2%
cpu00 3.5% 0.0% 11.6% 0.0% 0.0% 0.1% 84.6%
cpu01 4.3% 0.0% 14.2% 0.0% 0.0% 0.1% 81.2%
cpu02 5.7% 0.0% 7.4% 0.0% 0.0% 0.3% 86.3%
cpu03 3.7% 0.0% 6.1% 0.1% 0.5% 0.3% 88.9%
Mem: 2055252k av, 1988720k used, 66532k free, 0k shrd, 97796k buff
1406484k actv, 279684k in_d, 32716k in_c
Swap: 2096472k av, 1184688k used, 911784k free 246188k cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
30298 qmxmosrv 16 0 2352 2352 812 R 0.2 0.1 0:05 1 top
1 root 15 0 160 128 100 S 0.0 0.0 5:22 3 init
2 root RT 0 0 0 0 SW 0.0 0.0 0:00 0 migration/0
3 root RT 0 0 0 0 SW 0.0 0.0 0:00 1 migration/1
4 root RT 0 0 0 0 SW 0.0 0.0 0:00 2 migration/2
5 root RT 0 0 0 0 SW 0.0 0.0 0:00 3 migration/3
6 root 15 0 0 0 0 SW 0.0 0.0 0:02 1 keventd
7 root 34 19 0 0 0 SWN 0.0 0.0 0:00 0 ksoftirqd/0
8 root 34 19 0 0 0 SWN 0.0 0.0 0:00 1 ksoftirqd/1
9 root 34 19 0 0 0 SWN 0.0 0.0 0:00 2 ksoftirqd/2
10 root 34 19 0 0 0 SWN 0.0 0.0 0:00 3 ksoftirqd/3
13 root 15 0 0 0 0 SW 0.0 0.0 0:03 1 bdflush
11 root 15 0 0 0 0 SW 0.0 0.0 332:40 1 kswapd
12 root 15 0 0 0 0 SW 0.0 0.0 836:40 2 kscand
14 root 15 0 0 0 0 SW 0.0 0.0 44:15 3 kupdated
15 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 mdrecoveryd
22 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 scsi_eh_0
25 root 15 0 0 0 0 SW 0.0 0.0 127:31 3 kjournald
84 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 khubd
494 root 15 0 0 0 0 SW 0.0 0.0 0:00 2 kjournald
495 root 15 0 0 0 0 SW 0.0 0.0 96:59 2 kjournald
3277 root 15 0 384 268 264 S 0.0 0.0 0:00 0 xinetd
3308 root 15 0 1056 572 396 S 0.0 0.0 14:56 0 sendmail
3317 smmsp 15 0 668 216 124 S 0.0 0.0 0:08 1 sendmail
3329 root 16 0 420 372 168 S 0.0 0.0 13:56 3 crond
3340 root 15 0 104 56 52 S 0.0 0.0 0:00 3 mingetty
3341 root 18 0 104 56 52 S 0.0 0.0 0:00 0 mingetty
3342 root 18 0 104 56 52 S 0.0 0.0 0:00 2 mingetty
3343 root 18 0 104 56 52 S 0.0 0.0 0:00 1 mingetty
3466 root 17 0 104 56 52 S 0.0 0.0 0:00 0 mingetty
1827 mosrv 15 0 456 420 328 S 0.0 0.0 4:37 0 bash
28839 qmxmosrv 15 0 13212 3560 1056 S 0.0 0.1 3:44 2 java
28861 qmxmosrv 15 0 13212 3560 1056 S 0.0 0.1 7:29 0 java
28862 qmxmosrv 15 0 13212 3560 1056 S 0.0 0.1 0:00 1 java
28863 qmxmosrv 15 0 13212 3560 1056 S 0.0 0.1 0:01 3 java
28868 qmxmosrv 25 0 13212 3560 1056 S 0.0 0.1 0:00 1 java
28869 qmxmosrv 25 0 13212 3560 1056 S 0.0 0.1 0:00 1 java
28870 qmxmosrv 15 0 13212 3560 1056 S 0.0 0.1 0:00 0 java
28871 qmxmosrv 15 0 13212 3560 1056 S 0.0 0.1 122:22 2 java
28880 qmxmosrv 15 0 13212 3560 1056 S 0.0 0.1 2:51 1 java
10604 root 15 0 632 496 380 S 0.0 0.0 41:52 1 sshd
8919 root 15 0 548 464 412 S 0.0 0.0 15:07 2 syslogd
8923 root 15 0 304 244 240 S 0.0 0.0 0:00 3 klogd
差别这么这么大呢?希望达人们帮忙分析分析,我实在找不出原因,谢谢。
[ 本帖最后由 ch_ch 于 2007-4-4 16:19 编辑 ] |
|