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

Java Development

Reply
Developer
Posts: 484
Registered: ‎07-17-2008
My Device: Not Specified

Heap Size

What is the heap size of the JVM for various BlackBerry models?

 

Thanks,

 

Jon 

Highlighted
Developer
Posts: 120
Registered: ‎07-16-2008
My Device: 9000

Re: Heap Size

The amount of memory for each device varies.  For the last few years the devices have had 16mb of ram and 64mb of flash but they are increasing that on some of the newest phones.  I am not sure how that number directly relates to heap size.  Here are some articles on Garbage Collection and Low Memory Manage that might help based on what you are doing with this.  You can also use the net.rim.device.api.system.MemoryStats object to get details of how much memory is currently being used and is available.

Kurt Zettel | Chief Architect | Metova
www.metova.com
Developer
Posts: 484
Registered: ‎07-17-2008
My Device: Not Specified

Re: Heap Size

Thanks for the reply.

 

Does anyone know the amount of RAM (not flash) on the Bold?

 

Is it also 16MB? 

 

Jon 

New Developer
Posts: 17
Registered: ‎12-05-2008
My Device: Not Specified

Re: Heap Size

Hi kzettel

I've called getFree() in simulator but it return 0. I don't know why. Please help me

Thanks

-Duong

vi-chat, chat yahoo on blackberry! www.en.vi-chat.com
BlackBerry Development Advisor
Posts: 15,727
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Heap Size

What type of MemoryStats object are you calling getFree on?
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker