Skip to main content

Reduce Memory Usage

3 replies [Last post]
coax
Offline
Joined: 2006-11-15

Hi I hope this is the right Forum for this question.

I have a Java Program on my PDA (J9, compatible with JavaSE 1.2, I think.. ;) ). The problem is that the program need 7 MB memory, when the program has nothing to do. (I think reserved for action). If the program is getting active, the PDA slows extremely down (I can't see if it uses more Memory than). How can I reduce the memory usage?

Thanks for Help!

bye

coax

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
coax
Offline
Joined: 2006-11-15

Sometimes the Opera Browser is working and I want to start the Program. The Message is: OUT OF MEMORY!.. so I think i have a memory problem.. (when I run the same Program on a Computer, everything is ok... and why else should the whole PDA slows down when the program gets active?

I must reduce the Memory usage!

linuxhippy
Offline
Joined: 2004-01-07

watch your tonque!

0.) Premature optimization is evail.
1.) use the netbeans-profiler to watch the memory useage while it runs.
2.) If your program consumes a lot of CPU cycles they are not available for other apps -> everything is slower.

lg Clemens

linuxhippy
Offline
Joined: 2004-01-07

if you don't know whats happening why do you think you've a memory problem?