- 论坛徽章:
- 0
|
为什么我的apache会很慢啊?
我把apache关了,服务该停的都停了,有时会发现内存占用很大:
[root@web-linux bin]# top
15:24:35 up 2 days, 22:36, 1 user, load average: 0.00, 0.00, 0.00
51 processes: 49 sleeping, 1 running, 1 zombie, 0 stopped
CPU0 states: 0.0% user 0.2% system 0.0% nice 0.0% iowait 99.3% idle
CPU1 states: 0.1% user 0.1% system 0.0% nice 0.0% iowait 99.3% idle
Mem: 1030240k av, 556672k used, 473568k free, 0k shrd, 70120k buff
107000k actv, 304820k in_d, 452k in_c
Swap: 2048276k av, 668k used, 2047608k free 438936k cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
10788 root 15 0 1084 1084 856 R 0.1 0.1 0:00 1 top
1 root 15 0 148 136 96 S 0.0 0.0 0:05 0 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 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_CPU
6 root 34 19 0 0 0 SWN 0.0 0.0 0:00 1 ksoftirqd_CPU
11 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 bdflush
7 root 15 0 0 0 0 SW 0.0 0.0 0:01 1 kswapd
8 root 15 0 0 0 0 SW 0.0 0.0 0:00 1 kscand/DMA
9 root 15 0 0 0 0 SW 0.0 0.0 1:04 0 kscand/Normal
10 root 15 0 0 0 0 SW 0.0 0.0 1:23 0 kscand/HighMe
12 root 15 0 0 0 0 SW 0.0 0.0 0:02 0 kupdated
13 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 mdrecoveryd
20 root 18 0 0 0 0 SW 0.0 0.0 0:00 0 scsi_eh_1
为什么啊?Swap: 2048276k av, 668k used, 2047608k free 438936k cached
我swap时2G,为什么只用了668k ?后面的438936k cached是什么意思? |
|