当前位置: 技术问答>linux和unix
iis7站长之家
内存耗尽,进程被kill问题
来源: 互联网 发布时间:2016-04-06
本文导语: 在linux嵌入式板子上跑应用程序,跑了两天左右会出现内存耗尽,应用程序进程被kill掉的问题。有没有哪位大侠以前遇到过这种问题,或是知道是什么原因帮我分析一下啊?打印的错误信息如下。望指教,不胜感激!...
在linux嵌入式板子上跑应用程序,跑了两天左右会出现内存耗尽,应用程序进程被kill掉的问题。有没有哪位大侠以前遇到过这种问题,或是知道是什么原因帮我分析一下啊?打印的错误信息如下。望指教,不胜感激!
printk: 800 messages suppressed.
oom-killer: gfp_mask=0x601d2, order=0
Mem-info:
DMA per-cpu:
cpu 0 hot: low 6, high 18, batch 3 used:8
cpu 0 cold: low 0, high 6, batch 3 used:2
Normal per-cpu: empty
HighMem per-cpu: empty
Free pages: 720kB (0kB HighMem)
Active:5285 inactive:512 dirty:0 writeback:0 unstable:0 free:180 slab:579 mapped:5285 pagetables:25
DMA free:720kB min:724kB low:904kB high:1084kB active:21140kB inactive:2048kB present:32768kB pages_scanned:26074 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
HighMem free:0kB min:128kB low:160kB high:192kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
oom-killer: gfp_mask=0x601d2, order=0
lowmem_reserve[]: 0 0 0
DMA: 4*4kB 6*8kB 1*16kB 0*32kB 0*64kB 1*128kB 0*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB Mem-info:
DMA per-cpu:
cpu 0 hot: low 6, high 18, batch 3 used:8
= 720kB
Normal: empty
oom-killer: gfp_mask=0x601d2, order=0
Mem-info:
DMA per-cpu:cpu 0 cold: low 0, high 6, batch 3 used:2
Normal per-cpu:HighMem: empty
Swap cache: add 0, delete 0, find 0/0, race 0+0
cpu 0 hot: low 6, high 18, batch 3 used:8
empty
HighMem per-cpu: empty
Free pages: 720kB (0kB HighMem)
Free swap = 0kB
Total swap = 0kB
cpu 0 cold: low 0, high 6, batch 3 used:2
Normal per-cpu:oom-killer: gfp_mask=0x601d2, order=0
Mem-info:
DMA per-cpu:Active:5285 inactive:512 dirty:0 writeback:0 unstable:0 free:180 slab:579 mapped:5285 pagetables:25
Free swap: 0kB
empty
HighMem per-cpu: empty
cpu 0 hot: low 6, high 18, batch 3 used:8
cpu 0 cold: low 0, high 6, batch 3 used:2
DMA free:720kB min:724kB low:904kB high:1084kB active:21140kB inactive:2048kB present:32768kB pages_scanned:29097 all_unreclaimable? yes
8192 pages of RAM
250 free pages
760 reserved pages
Free pages: 720kB (0kB HighMem)
Active:5285 inactive:512 dirty:0 writeback:0 unstable:0 free:180 slab:579 mapped:5285 pagetables:25
Normal per-cpu:lowmem_reserve[]: 0 0 0
Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
579 slab pages
512 pages shared
DMA free:720kB min:724kB low:904kB high:1084kB active:21140kB inactive:2048kB present:32768kB pages_scanned:29097 all_unreclaimable? yes
empty
HighMem per-cpu: empty
lowmem_reserve[]: 0 0 0
HighMem free:0kB min:128kB low:160kB high:192kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
0 pages swap cached
lowmem_reserve[]: 0 0 0
Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
Free pages: 720kB (0kB HighMem)
lowmem_reserve[]: 0 0 0
DMA: 4*4kB 6*8kB 1*16kB 0*32kB 0*64kB 1*128kB 0*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB Out of Memory: Killed process 306 (linuxserver_cif).
Out of Memory: Killed process 307 (linuxserver_cif).
Out of Memory: Killed process 308 (linuxserver_cif).
Out of Memory: Killed process 309 (linuxserver_cif).
Out of Memory: Killed process 310 (linuxserver_cif).
lowmem_reserve[]: 0 0 0
HighMem free:0kB min:128kB low:160kB high:192kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
Active:5285 inactive:512 dirty:0 writeback:0 unstable:0 free:180 slab:579 mapped:5285 pagetables:25
= 720kB
Normal: empty
HighMem: empty
Swap cache: add 0, delete 0, find 0/0, race 0+0
lowmem_reserve[]:DMA free:672kB min:724kB low:904kB high:1084kB active:21140kB inactive:2500kB present:32768kB pages_scanned:29097 all_unreclaimable? yes
Free swap = 0kB
Total swap = 0kB
Free swap: 0kB
0 0 0
DMA: 0*4kB 2*8kB 1*16kB 0*32kB 0*64kB 1*128kB 0*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB lowmem_reserve[]: 0 0 0
Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
8192 pages of RAM
239 free pages
760 reserved pages
579 slab pages
= 672kB
Normal: lowmem_reserve[]: 0 0 0
HighMem free:0kB min:128kB low:160kB high:192kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
587 pages shared
0 pages swap cached
empty
HighMem: empty
Swap cache: add 0, delete 0, find 0/0, race 0+0
lowmem_reserve[]: 0 0 0
DMA: 19*4kB 1*8kB 0*16kB 0*32kB 0*64kB 1*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB Free swap = 0kB
= 468kB
Normal: empty
HighMem: Total swap = 0kB
empty
Swap cache: add 0, delete 0, find 0/0, race 0+0
Free swap: 0kB
Free swap = 0kB
Total swap = 0kB
Free swap: 0kB
8192 pages of RAM
151 free pages
8192 pages of RAM
151 free pages
760 reserved pages
622 slab pages
530 pages shared
760 reserved pages
622 slab pages
532 pages shared
0 pages swap cached
0 pages swap cached
Killed
printk: 800 messages suppressed.
oom-killer: gfp_mask=0x601d2, order=0
Mem-info:
DMA per-cpu:
cpu 0 hot: low 6, high 18, batch 3 used:8
cpu 0 cold: low 0, high 6, batch 3 used:2
Normal per-cpu: empty
HighMem per-cpu: empty
Free pages: 720kB (0kB HighMem)
Active:5285 inactive:512 dirty:0 writeback:0 unstable:0 free:180 slab:579 mapped:5285 pagetables:25
DMA free:720kB min:724kB low:904kB high:1084kB active:21140kB inactive:2048kB present:32768kB pages_scanned:26074 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
HighMem free:0kB min:128kB low:160kB high:192kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
oom-killer: gfp_mask=0x601d2, order=0
lowmem_reserve[]: 0 0 0
DMA: 4*4kB 6*8kB 1*16kB 0*32kB 0*64kB 1*128kB 0*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB Mem-info:
DMA per-cpu:
cpu 0 hot: low 6, high 18, batch 3 used:8
= 720kB
Normal: empty
oom-killer: gfp_mask=0x601d2, order=0
Mem-info:
DMA per-cpu:cpu 0 cold: low 0, high 6, batch 3 used:2
Normal per-cpu:HighMem: empty
Swap cache: add 0, delete 0, find 0/0, race 0+0
cpu 0 hot: low 6, high 18, batch 3 used:8
empty
HighMem per-cpu: empty
Free pages: 720kB (0kB HighMem)
Free swap = 0kB
Total swap = 0kB
cpu 0 cold: low 0, high 6, batch 3 used:2
Normal per-cpu:oom-killer: gfp_mask=0x601d2, order=0
Mem-info:
DMA per-cpu:Active:5285 inactive:512 dirty:0 writeback:0 unstable:0 free:180 slab:579 mapped:5285 pagetables:25
Free swap: 0kB
empty
HighMem per-cpu: empty
cpu 0 hot: low 6, high 18, batch 3 used:8
cpu 0 cold: low 0, high 6, batch 3 used:2
DMA free:720kB min:724kB low:904kB high:1084kB active:21140kB inactive:2048kB present:32768kB pages_scanned:29097 all_unreclaimable? yes
8192 pages of RAM
250 free pages
760 reserved pages
Free pages: 720kB (0kB HighMem)
Active:5285 inactive:512 dirty:0 writeback:0 unstable:0 free:180 slab:579 mapped:5285 pagetables:25
Normal per-cpu:lowmem_reserve[]: 0 0 0
Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
579 slab pages
512 pages shared
DMA free:720kB min:724kB low:904kB high:1084kB active:21140kB inactive:2048kB present:32768kB pages_scanned:29097 all_unreclaimable? yes
empty
HighMem per-cpu: empty
lowmem_reserve[]: 0 0 0
HighMem free:0kB min:128kB low:160kB high:192kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
0 pages swap cached
lowmem_reserve[]: 0 0 0
Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
Free pages: 720kB (0kB HighMem)
lowmem_reserve[]: 0 0 0
DMA: 4*4kB 6*8kB 1*16kB 0*32kB 0*64kB 1*128kB 0*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB Out of Memory: Killed process 306 (linuxserver_cif).
Out of Memory: Killed process 307 (linuxserver_cif).
Out of Memory: Killed process 308 (linuxserver_cif).
Out of Memory: Killed process 309 (linuxserver_cif).
Out of Memory: Killed process 310 (linuxserver_cif).
lowmem_reserve[]: 0 0 0
HighMem free:0kB min:128kB low:160kB high:192kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
Active:5285 inactive:512 dirty:0 writeback:0 unstable:0 free:180 slab:579 mapped:5285 pagetables:25
= 720kB
Normal: empty
HighMem: empty
Swap cache: add 0, delete 0, find 0/0, race 0+0
lowmem_reserve[]:DMA free:672kB min:724kB low:904kB high:1084kB active:21140kB inactive:2500kB present:32768kB pages_scanned:29097 all_unreclaimable? yes
Free swap = 0kB
Total swap = 0kB
Free swap: 0kB
0 0 0
DMA: 0*4kB 2*8kB 1*16kB 0*32kB 0*64kB 1*128kB 0*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB lowmem_reserve[]: 0 0 0
Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
8192 pages of RAM
239 free pages
760 reserved pages
579 slab pages
= 672kB
Normal: lowmem_reserve[]: 0 0 0
HighMem free:0kB min:128kB low:160kB high:192kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
587 pages shared
0 pages swap cached
empty
HighMem: empty
Swap cache: add 0, delete 0, find 0/0, race 0+0
lowmem_reserve[]: 0 0 0
DMA: 19*4kB 1*8kB 0*16kB 0*32kB 0*64kB 1*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB Free swap = 0kB
= 468kB
Normal: empty
HighMem: Total swap = 0kB
empty
Swap cache: add 0, delete 0, find 0/0, race 0+0
Free swap: 0kB
Free swap = 0kB
Total swap = 0kB
Free swap: 0kB
8192 pages of RAM
151 free pages
8192 pages of RAM
151 free pages
760 reserved pages
622 slab pages
530 pages shared
760 reserved pages
622 slab pages
532 pages shared
0 pages swap cached
0 pages swap cached
Killed
|
如果条件允许,用mtrace、memwatch、valgrind、dmalloc等工具。
|
有内存泄漏,查吧。
|
不知有什么好的方法呢?