由 suncqq 在 10-28-2003 23:27 发表:
为什么我的服务器这么慢啊!查看top显示如下!
[root local]top (输入命令,显示如下)
======================================================================
CPU states: 0.1% user 3.4% system 0.0% nice 0.0% iowait 96.4% idle
Mem: 383568k av, 379352k used, 4216k free, 0k shrd, 668k buff
365584k actv, 68k in_d, 980k in_c
Swap: 779144k av, 779144k used, 0k free 872k cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
20772 nobody 15 0 143M 99M 48 D 4.1 26.6 0:12 0 httpd
21043 nobody 15 0 7796 6456 52 D 1.6 1.6 0:00 0 httpd
7 root 15 0 0 0 0 SW 1.4 0.0 35:14 0 kscand/Normal
5 root 15 0 0 0 0 DW 0.7 0.0 14:55 0 kswapd
5090 root 15 0 476 28 0 S 0.1 0.0 0:06 0 cupsd
16958 nobody 15 0 675M 33M 4 D 0.1 8.9 41:05 0 httpd
21044 nobody 15 0 254M 210M 4 D 0.1 56.3 0:19 0 httpd
21091 nobody 15 0 1564 296 144 D 0.1 0.0 0:00 0 httpd
1 root 15 0 56 24 0 S 0.0 0.0 0:09 0 init
2 root 15 0 0 0 0 SW 0.0 0.0 0:02 0 keventd
3 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kapmd
4 root 34 19 0 0 0 SWN 0.0 0.0 0:00 0 ksoftirqd_CPU0
9 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 bdflush
6 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kscand/DMA
8 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kscand/HighMem
10 root 15 0 0 0 0 SW 0.0 0.0 0:01 0 kupdated
11 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 mdrecoveryd
17 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 scsi_eh_0
20 root 15 0 0 0 0 SW 0.0 0.0 0:04 0 kjournald
======================================================================
为什么httpd占用这么多的?正常吗?我的服务器是做虚拟主机的!网站有2、30个左右!平时都比较慢的。
由 Snoopy 在 10-29-2003 11:23 发表:
CPU states: 0.1% user 3.4% system 0.0% nice 0.0% iowait 96.4% idle
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
这一行各项代表什么啊??
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the darkness steals some of the choices from my hand
Then will I begin to under
由 风暴眼 在 10-29-2003 16:28 发表:
天啊 你运行了几个apahche ?
你的apache 也太能吃内存了吧 ?
由 大熊宝宝 在 10-29-2003 19:35 发表:
> quote:
>
> * * *
>
> 最初由 pinksnoopy 发表
>
> **CPU states: 0.1% user 3.4% system 0.0% nice 0.0% iowait 96.4% idle
>
>
>
> PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
>
>
>
> 这一行各项代表什么啊?? **
>
> * * *
5个HTTPD进程很普通啊 96.4% idle 系统96。4空闲 你怎么感觉服务器慢啊?有什么现象?
请兄弟们正确发贴,把问题发到相关版块 发贴标题请简明扼要 谢谢大家配合.
新会员发贴前请学会搜索论坛 有可能你的问题已经有答案了
由 edwardhayes 在 10-29-2003 20:38 发表:
我个人认为x-windows很会吃内存,我256的内存
只能有70几空闲。没有做任何的服务器,只是单独
工作。一旦播放音乐或者看影片,就只有30几空闲
了。
如知其非义,斯速已矣,何待来年?
----------------------------------
人生无常,态度决定一切!
----------------------------------
有空来坐坐我的家:http://cs.zjei.net/~wzh/
由 hgkrt 在 10-29-2003 22:22 发表:
兄弟厉害呀!!!swap700多MB,居然全部被使用!!!
我的破服务器,只有320mb内存,全部用上,swap的500多,他只用5mb...
欢迎访问我的个人主页!!!
主机:
网上空间:
http://www.paw.hi-ho.ne.jp/hgkrt
由 小皮 在 10-30-2003 16:17 发表:
如果只是访问网页时慢的话查一下apache的错误信息和系统日志,可能你会有所收获!
一个人如果希望过上美好的生活,当然需要付出艰辛的劳动!
http://linux.ournb.net [宁波Linux社区]
由 Snoopy 在 10-31-2003 10:00 发表:
09:57:18 up 1:52, 3 users, load average: 0.41, 0.27, 0.20
77 processes: 75 sleeping, 1 running, 0 zombie, 1 stopped
CPU states: 5.0% user 3.1% system 0.0% nice 0.0% iowait 91.8% idle
Mem: 513804k av, 457172k used, 56632k free, 0k shrd, 27364k buff
316404k actv, 1304k in_d, 97720k in_c
Swap: 1044184k av, 0k used, 1044184k free 251320k cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
2426 root 15 0 440 440 352 S 1.9 0.0 0:02 0 esd
1031 root 15 0 106M 31M 2496 S 0.9 6.2 3:10 0 X
1 root 15 0 476 476 424 S 0.0 0.0 0:04 0 init
2 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 keventd
3 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kapmd
4 root 3