Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Highlighted
New Developer
Posts: 13
Registered: ‎09-26-2013
My Device: z10
My Carrier: Verizon Wireless

How can I monitor memory usage for Headless application?

[ Edited ]

Hi Guys,

 

I think my headless application takes memory more than 3MB and I got the exception as "out of memory". I already read https://developer.blackberry.com/native/documentation/core/com.qnx.doc.ide.userguide/topic/memory_ba... but

 

I don't understand 100% and my Momentics IDE always not responding during analyze the memory.

 

I also use MemoryInfo.memoryUsedByCurrentProcess() but I think it's not the same memory usage on headless.

 

Anybody here know how to get the memory usage of the headless application?

 

Thank you,

Shiryu

Retired
Posts: 249
Registered: ‎07-14-2008
My Device: Not Specified

Re: How can I monitor memory usage for Headless application?

The memory cap of 3MB only counts the memory taken in the heap by your application. So, only your "malloc"s and "new"s are counted.

In momentics, you need to look at the heap memory.