varamfer / openhab

Automatically exported from code.google.com/p/openhab
0 stars 0 forks source link

Out of memory #128

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Just run Openhab on an Alix2 for about 7-8 days. 

What is the expected output? What do you see instead?

Should not kill java. Is there a memory leak?

What version of the product are you using? On what operating system?

Openhab 1.0, Debian 6.1 & Sun Java.

Please provide any additional information below.

dmesg log:

[791814.151932] Pid: 3081, comm: java Not tainted 2.6.32-5-486 #1
[791814.157797] Call Trace:
[791814.161787]  [<c106f783>] ? oom_kill_process+0x48/0x1a1
[791814.164148]  [<c106fc42>] ? __out_of_memory+0xeb/0xfe
[791814.169360]  [<c106fca1>] ? out_of_memory+0x4c/0x67
[791814.173338]  [<c1072087>] ? __alloc_pages_nodemask+0x3dc/0x4c6
[791814.176813]  [<c106e1cc>] ? filemap_fault+0x1f5/0x2b5
[791814.181311]  [<c107e011>] ? __do_fault+0x43/0x33c
[791814.185282]  [<c107fccd>] ? handle_mm_fault+0x407/0x7d0
[791814.186677]  [<c1040daa>] ? sys_futex+0xfc/0x111
[791814.190702]  [<c1247afc>] ? do_page_fault+0x25b/0x26a
[791814.196248]  [<c12478a1>] ? do_page_fault+0x0/0x26a
[791814.200225]  [<c124617b>] ? error_code+0x6b/0x70
[791814.204069] Mem-Info:
[791814.208348] DMA per-cpu:
[791814.212338] CPU    0: hi:    0, btch:   1 usd:   0
[791814.218222] Normal per-cpu:
[791814.224714] CPU    0: hi:   90, btch:  15 usd:  14
[791814.228700] active_anon:30540 inactive_anon:30745 isolated_anon:0
[791814.228700]  active_file:24 inactive_file:201 isolated_file:0
[791814.228700]  unevictable:0 dirty:0 writeback:3 unstable:0
[791814.228700]  free:735 slab_reclaimable:334 slab_unreclaimable:590
[791814.228700]  mapped:22 shmem:12 pagetables:163 bounce:0
[791814.234054] DMA free:1076kB min:124kB low:152kB high:184kB 
active_anon:6984kB inactive_anon:7552kB active_file:24kB inactive_file:268kB 
unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15872kB 
mlocked:0kB dirty:0kB writeback:0kB mapped:20kB shmem:0kB slab_reclaimable:8kB 
slab_unreclaimable:0kB kernel_stack:0kB pagetables:8kB unstable:0kB bounce:0kB 
writeback_tmp:0kB pages_scanned:224 all_unreclaimable? no
[791814.238003] lowmem_reserve[]: 0 238 238 238
[791814.258547] Normal free:1864kB min:1908kB low:2384kB high:2860kB 
active_anon:115176kB inactive_anon:115428kB active_file:72kB 
inactive_file:536kB unevictable:0kB isolated(anon):0kB isolated(file):0kB 
present:243840kB mlocked:0kB dirty:0kB writeback:12kB mapped:68kB shmem:48kB 
slab_reclaimable:1328kB slab_unreclaimable:2360kB kernel_stack:928kB 
pagetables:644kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:697 
all_unreclaimable? yes
[791814.263757] lowmem_reserve[]: 0 0 0 0
[791814.277476] DMA: 1*4kB 0*8kB 1*16kB 1*32kB 0*64kB 0*128kB 0*256kB 0*512kB 
1*1024kB 0*2048kB 0*4096kB = 1076kB
[791814.329078] Normal: 12*4kB 11*8kB 14*16kB 9*32kB 7*64kB 6*128kB 0*256kB 
0*512kB 0*1024kB 0*2048kB 0*4096kB = 1864kB
[791814.381605] 237 total pagecache pages
[791814.385149] 0 pages in swap cache
[791814.389907] Swap cache stats: add 0, delete 0, find 0/0
[791814.393893] Free swap  = 0kB
[791814.397527] Total swap = 0kB
[791814.411559] 65536 pages RAM
[791814.418110] 0 pages HighMem
[791814.422097] 1668 pages reserved
[791814.424610] 216 pages shared
[791814.427291] 62858 pages non-shared
[791814.432681] Out of memory: kill process 2799 (start.sh) score 30225 or a 
child
[791814.436651] Killed process 2804 (java)
[791814.446747] java invoked oom-killer: gfp_mask=0x201da, order=0, oom_adj=0
[791814.453347] java cpuset=/ mems_allowed=0
[791814.457508] Pid: 3081, comm: java Not tainted 2.6.32-5-486 #1
[791814.461336] Call Trace:
[791814.465905]  [<c106f783>] ? oom_kill_process+0x48/0x1a1
[791814.469777]  [<c106fc42>] ? __out_of_memory+0xeb/0xfe
[791814.473515]  [<c106fca1>] ? out_of_memory+0x4c/0x67
[791814.475069]  [<c1072087>] ? __alloc_pages_nodemask+0x3dc/0x4c6
[791814.481495]  [<c106e1cc>] ? filemap_fault+0x1f5/0x2b5
[791814.485460]  [<c107e011>] ? __do_fault+0x43/0x33c
[791814.488436]  [<c107fccd>] ? handle_mm_fault+0x407/0x7d0
[791814.492410]  [<c1040daa>] ? sys_futex+0xfc/0x111
[791814.496436]  [<c1247afc>] ? do_page_fault+0x25b/0x26a
[791814.501980]  [<c12478a1>] ? do_page_fault+0x0/0x26a
[791814.505957]  [<c124617b>] ? error_code+0x6b/0x70
[791814.509810] Mem-Info:
[791814.514084] DMA per-cpu:
[791814.518073] CPU    0: hi:    0, btch:   1 usd:   0
[791814.521475] Normal per-cpu:
[791814.523911] CPU    0: hi:   90, btch:  15 usd:  31
[791814.528902] active_anon:30540 inactive_anon:30745 isolated_anon:0
[791814.528913]  active_file:24 inactive_file:201 isolated_file:0
[791814.528923]  unevictable:0 dirty:0 writeback:3 unstable:0
[791814.528933]  free:853 slab_reclaimable:317 slab_unreclaimable:586
[791814.528943]  mapped:23 shmem:12 pagetables:163 bounce:0
[791814.532866] DMA free:1076kB min:124kB low:152kB high:184kB 
active_anon:6984kB inactive_anon:7552kB active_file:24kB inactive_file:268kB 
unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15872kB 
mlocked:0kB dirty:0kB writeback:0kB mapped:20kB shmem:0kB slab_reclaimable:8kB 
slab_unreclaimable:0kB kernel_stack:0kB pagetables:8kB unstable:0kB bounce:0kB 
writeback_tmp:0kB pages_scanned:704 all_unreclaimable? yes
[791814.537077] lowmem_reserve[]: 0 238 238 238
[791814.553178] Normal free:2336kB min:1908kB low:2384kB high:2860kB 
active_anon:115176kB inactive_anon:115428kB active_file:72kB 
inactive_file:536kB unevictable:0kB isolated(anon):0kB isolated(file):0kB 
present:243840kB mlocked:0kB dirty:0kB writeback:12kB mapped:72kB shmem:48kB 
slab_reclaimable:1260kB slab_unreclaimable:2344kB kernel_stack:472kB 
pagetables:644kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 
all_unreclaimable? no
[791814.555200] lowmem_reserve[]: 0 0 0 0
[791814.573022] DMA: 1*4kB 0*8kB 1*16kB 1*32kB 0*64kB 0*128kB 0*256kB 0*512kB 
1*1024kB 0*2048kB 0*4096kB = 1076kB
[791814.624627] Normal: 12*4kB 28*8kB 19*16kB 13*32kB 9*64kB 6*128kB 0*256kB 
0*512kB 0*1024kB 0*2048kB 0*4096kB = 2336kB
[791814.678193] 237 total pagecache pages
[791814.681729] 0 pages in swap cache
[791814.685719] Swap cache stats: add 0, delete 0, find 0/0
[791814.690125] Free swap  = 0kB
[791814.694114] Total swap = 0kB
[791814.708152] 65536 pages RAM
[791814.710698] 0 pages HighMem
[791814.717207] 1668 pages reserved
[791814.721197] 218 pages shared
[791814.723878] 62779 pages non-shared
[791814.729255] Out of memory: kill process 2799 (start.sh) score 3267 or a 
child
[791814.733239] Killed process 2867 (java)

Original issue reported on code.google.com by boris.li...@gmail.com on 20 Sep 2012 at 6:02

GoogleCodeExporter commented 8 years ago
As far as I know, the Alix has only 256MB or RAM. openHAB can exceed this 
during normal operation as it is not (yet) optimized for low-power embedded 
hardware.
I am running openHAB for weeks without the memory increasing over time, so I do 
not think that there is any general memory leak.

Original comment by kai.openhab on 20 Sep 2012 at 8:21