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
Highlighted
Developer
Posts: 22
Registered: ‎08-22-2008
My Device: Bold

Analyze Memory on BlackBerry

[ Edited ]

Hello,

we have self written Java programs on BlackjBerry 8800 with Firmware 4.5.

The BlackBerry runs out of memory.

Is there any chance to identify the application that caused the problem?
Is there a chance to read the persistent memory and get the size stored under different IDs?

Regards Juergen

Message Edited by Juergen on 04-02-2009 07:46 AM
Message Edited by Juergen on 04-02-2009 07:47 AM
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Analyze Memory on BlackBerry

It would surprise me if you had run out of persistent memory, typically in situations like this it is some kind of recursive call or a serious memory leak.

 

I would recommend that you review the following videos, I strongly recommend the Garbage collection one because it will tell you all about it and also tell you how to use the JDE profiler, which is the tool that you need to use.  There is information on running it in the Help too, so I won't put any details in here.

 

Garbage Collection

http://www.blackberry.com/DevMediaLibrary/view.do?name=GarbageCollection

 

Low Memory Handler

http://www.blackberry.com/DevMediaLibrary/view.do?name=LowMemoryManager

 

Review these, you should get some hints, but do come back to us if you can't sort it out yourself.