Select Language
Reply
Super Contributor
jonberry
Posts: 254
Registered: 07-17-2008
0

Heap Size

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

 

Thanks,

 

Jon 

Trusted Contributor
kzettel
Posts: 118
Registered: 07-16-2008
0

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
Super Contributor
jonberry
Posts: 254
Registered: 07-17-2008
0

Re: Heap Size

Thanks for the reply.

 

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

 

Is it also 16MB? 

 

Jon 

Contributor
nghienpc
Posts: 17
Registered: 12-05-2008
0

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
Administrator
MSohm
Posts: 6,008
Registered: 07-09-2008
0

Re: Heap Size

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

Please refrain from posting new questions in solved threads.

Found a bug? Report it using the Issue Tracker