在关闭apache服务后发觉内存占用还是高的离奇
lindley
|
1#
lindley 发表于 2007-01-08 23:05
在关闭apache服务后发觉内存占用还是高的离奇
最近在做网站调整,所以访问量非常低每分钟的访问量20个
然后作了些测试在机器运行后发觉内存的占用率是300M 访问人数为20左右 然后过了一天下来,访问人数不变,内存全部占用光,于是关闭了apache,可内存不会下调 以下是关闭apache后top的显示结果 top - 23:20:05 up 1 day, 6:17, 1 users, load average: 0.00, 0.00, 0.00 Tasks: 61 total, 2 running, 59 sleeping, 0 stopped, 0 zombie Cpu(s): 0.3% us, 0.3% sy, 0.0% ni, 99.3% id, 0.0% wa, 0.0% hi, 0.0% si Mem: 2050172k total, 1874184k used, 175988k free, 59004k buffers Swap: 4096532k total, 160k used, 4096372k free, 1573464k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1 root 16 0 4748 548 456 S 0.0 0.0 0:00.70 init 2 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0 3 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 events/0 4 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 khelper 5 root 15 -10 0 0 0 S 0.0 0.0 0:00.00 kacpid 22 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 kblockd/0 23 root 15 0 0 0 0 S 0.0 0.0 0:00.00 khubd 34 root 20 0 0 0 0 S 0.0 0.0 0:00.00 pdflush 35 root 15 0 0 0 0 S 0.0 0.0 0:00.25 pdflush 37 root 13 -10 0 0 0 S 0.0 0.0 0:00.00 aio/0 36 root 15 0 0 0 0 S 0.0 0.0 0:00.48 kswapd0 110 root 24 0 0 0 0 S 0.0 0.0 0:00.00 kseriod 173 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 ata/0 175 root 22 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0 176 root 23 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_1 204 root 15 0 0 0 0 S 0.0 0.0 0:01.19 kjournald 1168 root 6 -10 3600 448 360 S 0.0 0.0 0:00.00 udevd 1533 root 6 -10 0 0 0 S 0.0 0.0 0:00.00 kauditd 1567 root 6 -10 0 0 0 S 0.0 0.0 0:00.00 kmirrord 1574 root 6 -10 0 0 0 S 0.0 0.0 0:00.00 kmir_mon 1604 root 15 0 0 0 0 S 0.0 0.0 0:00.00 kjournald 1605 root 15 0 0 0 0 S 0.0 0.0 0:01.22 kjournald 1606 root 15 0 0 0 0 S 0.0 0.0 0:01.52 kjournald 1964 root 16 0 2524 456 388 S 0.0 0.0 0:00.02 cpuspeed 2163 root 16 0 3624 612 496 S 0.0 0.0 0:00.03 syslogd 2167 root 16 0 2532 484 404 S 0.0 0.0 0:00.00 klogd 2193 rpc 15 0 4744 636 512 S 0.0 0.0 0:00.00 portmap 2212 rpcuser 18 0 5796 792 676 S 0.0 0.0 0:00.00 rpc.statd 2223 root 16 0 2588 484 396 S 0.0 0.0 0:00.00 mdadm 2248 root 16 0 19852 1084 880 S 0.0 0.1 0:00.00 rpc.idmapd 2316 root 20 0 2536 536 452 S 0.0 0.0 0:00.00 acpid 2325 root 16 0 71132 2460 1880 S 0.0 0.1 0:00.00 cupsd 2365 root 16 0 21944 2068 1628 S 0.0 0.1 0:00.90 sshd 2401 root 15 0 8708 876 712 S 0.0 0.0 0:00.00 xinetd 2446 root 16 0 4172 532 452 S 0.0 0.0 0:00.00 gpm 2475 htt 21 0 3544 328 264 S 0.0 0.0 0:00.00 htt 2476 htt 18 0 38704 3388 2724 S 0.0 0.2 0:00.00 htt_server 2487 canna 16 0 29620 25m 576 S 0.0 1.3 0:00.52 cannaserver 2分钟后开启apache top - 23:22:19 up 1 day, 6:20, 2 users, load average: 0.15, 0.03, 0.01 Tasks: 77 total, 2 running, 75 sleeping, 0 stopped, 0 zombie Cpu(s): 0.3% us, 0.3% sy, 0.0% ni, 99.0% id, 0.0% wa, 0.0% hi, 0.3% si Mem: 2050172k total, 1921144k used, 129028k free, 59312k buffers Swap: 4096532k total, 160k used, 4096372k free, 1584048k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 6867 apache 15 0 148m 13m 7176 S 0.3 0.7 0:00.03 httpd 6868 apache 15 0 148m 13m 7316 S 0.3 0.7 0:00.03 httpd 6857 apache 15 0 148m 15m 8400 S 0.0 0.8 0:00.06 httpd 6858 apache 15 0 146m 9192 4828 S 0.0 0.4 0:00.00 httpd 6859 apache 15 0 146m 9184 4828 S 0.0 0.4 0:00.00 httpd 6860 apache 15 0 148m 14m 7420 S 0.0 0.7 0:00.03 httpd 6861 apache 16 0 146m 9200 4828 R 0.0 0.4 0:00.00 httpd 6862 apache 15 0 146m 9184 4828 S 0.0 0.4 0:00.00 httpd 6863 apache 15 0 146m 9184 4828 S 0.0 0.4 0:00.00 httpd 6864 apache 15 0 146m 9184 4828 S 0.0 0.4 0:00.00 httpd 6865 apache 15 0 146m 9200 4828 S 0.0 0.4 0:00.00 httpd 6866 apache 15 0 148m 13m 7236 S 0.0 0.7 0:00.10 httpd 6869 apache 15 0 146m 9192 4828 S 0.0 0.4 0:00.00 httpd 6870 apache 15 0 146m 9188 4828 S 0.0 0.4 0:00.00 httpd 6871 apache 15 0 146m 9188 4828 S 0.0 0.4 0:00.00 httpd 谁能告诉这台服务器有什么不对? |