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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
jonberry
Posts: 484
Registered: ‎07-17-2008

Heap Size

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

 

Thanks,

 

Jon 

Please use plain text.
Developer
kzettel
Posts: 120
Registered: ‎07-16-2008

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
Please use plain text.
Developer
jonberry
Posts: 484
Registered: ‎07-17-2008

Re: Heap Size

Thanks for the reply.

 

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

 

Is it also 16MB? 

 

Jon 

Please use plain text.
New Developer
nghienpc
Posts: 17
Registered: ‎12-05-2008

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
Please use plain text.
Administrator
MSohm
Posts: 12,957
Registered: ‎07-09-2008
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.
Found a bug? Report it using the Issue Tracker
Please use plain text.