|
我的DELL2650服务器,双至强2.8G,4G内存,linux7.3.每次运行一个进程后,会耗掉几百兆内存,运行完后,用TOP查看没有释放内存,继续运行新的进程,内存占用率依次迭加,最后耗光4G后死机,40台服务器全是这样.在不重起的情况下,有什么方法可以释放内存.
4:49pm up 1 day, 7:06, 16 users, load average: 0.00, 0.03, 0.26
112 processes: 111 sleeping, 1 running, 0 zombie, 0 stopped
CPU0 states: 0.1% user, 0.2% system, 0.0% nice, 99.2% idle
CPU1 states: 0.0% user, 0.0% system, 0.0% nice, 100.0% idle
CPU2 states: 0.0% user, 0.0% system, 0.0% nice, 100.0% idle
CPU3 states: 0.0% user, 0.0% system, 0.0% nice, 100.0% idle
Mem: 4004216K av, 419484K used, 3584732K free, 0K shrd, 3996K buff
Swap: 2097136K av, 29612K used, 2067524K free 367964K cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
6275 zhoubin 15 0 808 752 560 S 0.1 0.0 0:09 top
6406 frontend 15 0 1172 1172 928 S 0.1 0.0 0:01 top
6461 root 15 0 1152 1152 908 R 0.1 0.0 0:00 top
1 root 15 0 244 200 188 S 0.0 0.0 0:05 init
2 root 15 0 0 0 0 SW 0.0 0.0 0:00 keventd
3 root 34 19 0 0 0 SWN 0.0 0.0 0:02 ksoftirqd_CPU0
4 root 34 19 0 0 0 SWN 0.0 0.0 0:00 ksoftirqd_CPU1
5 root 34 19 0 0 0 SWN 0.0 0.0 0:00 ksoftirqd_CPU2
6 root 34 19 0 0 0 SWN 0.0 0.0 0:00 ksoftirqd_CPU3
7 root 15 0 0 0 0 SW 0.0 0.0 0:10 kswapd
8 root 15 0 0 0 0 SW 0.0 0.0 0:02 bdflush
9 root 15 0 0 0 0 SW 0.0 0.0 0:00 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
17 root 25 0 0 0 0 SW 0.0 0.0 0:00 scsi_eh_1
20 root 15 0 0 0 0 SW 0.0 0.0 0:10 kjournald
99 root 16 0 0 0 0 SW 0.0 0.0 0:00 khubd
678 root 15 0 344 288 248 S 0.0 0.0 0:00 syslogd
683 root 15 0 228 172 172 S 0.0 0.0 0:00 klogd
703 rpc 15 0 372 340 340 S 0.0 0.0 0:00 portmap
731 rpcuser 17 0 292 196 196 S 0.0 0.0 0:00 rpc.statd
828 root 15 0 0 0 0 SW 0.0 0.0 0:01 rpciod
829 root 16 0 0 0 0 SW 0.0 0.0 0:00 lockd
919 root 15 0 484 352 336 S 0.0 0.0 0:00 sshd
952 root 15 0 408 196 196 S 0.0 0.0 0:00 xinetd
1041 root 15 0 316 248 212 S 0.0 0.0 0:00 crond
1097 xfs 15 0 2564 228 228 S 0.0 0.0 0:00 xfs
1133 daemon 15 0 284 196 196 S 0.0 0.0 0:00 atd
1165 root 17 0 424 364 316 S 0.0 0.0 0:00 ypbind
1166 root 15 0 424 364 316 S 0.0 0.0 0:00 ypbind
1167 root 19 0 424 364 316 S 0.0 0.0 0:00 ypbind |
|