# Out of Memory Issue While Running QTimer with my application.

**URL:** <https://forums.digi.com/t/out-of-memory-issue-while-running-qtimer-with-my-application/11171>\
**Category:** Linux\
**Tags:** qt-embedded\
**Created:** [July 20, 2012, 6:42am UTC](https://forums.digi.com/t/out-of-memory-issue-while-running-qtimer-with-my-application/11171 "2012-07-20T06:42:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![elangovan](https://avatars.discourse-cdn.com/v4/letter/e/3ab097/32.png) [@elangovan](https://forums.digi.com/u/elangovan)\
**Post date:** [July 20, 2012, 6:42am UTC](https://forums.digi.com/t/out-of-memory-issue-while-running-qtimer-with-my-application/11171/1 "2012-07-20T06:42:20Z")

</div>

I am running QTimer in my application with an interval of 100ms Frequently I am getting Out of Memory error, even if small piece of code is executing on timer loop.

Please find the error message for your reference and kindly help us out to solve this issue.

PortableTester invoked oom-killer: gfp\_mask=0x201da, order=0, oomkilladj=0  
[] (unwind\_backtrace+0x0/0xd8) from [] (T.285+0x58/0x1b4)  
[] (T.285+0x58/0x1b4) from [] (\_\_out\_of\_memory+0x158/0x17c)  
[] (\_\_out\_of\_memory+0x158/0x17c) from [] (out\_of\_memory+0x64/0x98)  
[] (out\_of\_memory+0x64/0x98) from [] (\_\_alloc\_pages\_nodemask+0x458/0x554  
)  
[] (\_\_alloc\_pages\_nodemask+0x458/0x554) from [] (\_\_do\_page\_cache\_readahe  
ad+0x9c/0x1e0)  
[] (\_\_do\_page\_cache\_readahead+0x9c/0x1e0) from [] (ra\_submit+0x20/0x24)  
[] (ra\_submit+0x20/0x24) from [] (filemap\_fault+0x1a4/0x374)  
[] (filemap\_fault+0x1a4/0x374) from [] (\_\_do\_fault+0x50/0x3b0)  
[] (\_\_do\_fault+0x50/0x3b0) from [] (handle\_mm\_fault+0x240/0x96c)  
[] (handle\_mm\_fault+0x240/0x96c) from [] (do\_page\_fault+0xe4/0x24c)  
[] (do\_page\_fault+0xe4/0x24c) from [] (ret\_from\_exception+0x0/0x10)  
Mem-info:  
DMA per-cpu:  
CPU 0: hi: 18, btch: 3 usd: 15  
Normal per-cpu:  
CPU 0: hi: 90, btch: 15 usd: 87  
Active\_anon:64985 active\_file:0 inactive\_anon:19168  
inactive\_file:28 unevictable:0 dirty:0 writeback:0 unstable:0  
free:23066 slab:527 mapped:29 pagetables:214 bounce:0  
DMA free:89796kB min:588kB low:732kB high:880kB active\_anon:0kB inactive\_anon:0kB active\_fil  
e:0kB inactive\_file:0kB unevictable:0kB present:97536kB pages\_scanned:0 all\_unreclaimable? y  
es  
lowmem\_reserve[]: 0 85344 85344  
Normal free:2468kB min:2056kB low:2568kB high:3084kB active\_anon:259940kB inactive\_anon:7667  
2kB active\_file:0kB inactive\_file:112kB unevictable:0kB present:341376kB pages\_scanned:28 al  
l\_unreclaimable? no  
lowmem\_reserve[]: 0 0 0  
DMA: 5_4kB 4_8kB 5_16kB 4_32kB 1_64kB 1_128kB 1_256kB 0_512kB 1_1024kB 1_2048kB 1_4096kB 2_8  
192kB 4_16384kB = 89796kB  
Normal: 99_4kB 7_8kB 0_16kB 1_32kB 1_64kB 1_128kB 1_256kB 1_512kB 1_1024kB 0_2048kB 0_4096kB  
0_8192kB 0_16384kB = 2468kB  
39 total pagecache pages  
110592 pages of RAM  
23228 free pages  
2113 reserved pages  
405 slab pages  
29 pages shared  
0 pages swap cached  
Out of memory: kill process 604 (sh) score 2974 or a child  
Killed process 609 (PortableTester)  
Killed

Regards

Elangovan.D
