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

New Developer
Posts: 22
Registered: ‎08-05-2008
My Device: Not Specified

can i change heapsize of JVM?

Hi all, 

My application returns Uncaught Exception: java.lang.OutOfMemoryError when i try to create 155x24 spreadsheet.

may be i'm wrong but i think it is about heap size, because LMM can't anything about that. So, is there a way to change JVM heapsize like -Xmx 16.

Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: can I change heapsize of JVM?

I don't think heapsize is going help, as far as I know, there is not a heap on the BlackBerry. 


Can you tell us what is in your spreadsheet, how it is constructed and how much memory you expect it to take up?


Note that the JDE has some very useful memory statistics and profiling tools that might help you determine where all the memory is being used.