This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes Memory Usage Prob Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Memory Usage Prob" Watch "Memory Usage Prob" New topic

Memory Usage Prob

Ronakkumar Patel

Joined: May 20, 2005
Posts: 14

I have click on the Enable Memory Monitor to look How much memory is my Game Using.
Now here is the Case i found i dont know why it happening.

When i run the game in the J2ME WTK (First Build and Then Run from the WTK it self)

Game uses maximum memorey 103k when i run the game.

Now after that I Package the game. and copy the .jar and .jad file in one folder on my desktop.

Now when i click on the .jad file. Both Memory Monitor and Emuators were open.
But this time It usues. 135K maximum memomry when i run the whole game.

The dirrence i found was in 2nd case VM internal Memory usage was more then the previous one. All the other things were same.

Any body can explaing me why this happens??
And also Plz tell me what should i consider my game size. 134k or 106k;

Thanks in advance
I agree. Here's the link:
subject: Memory Usage Prob
Similar Threads
java.lang.OutOfMemoryError: Java heap space
Java game error
Library not detected in eclipse
ERROR while Running via OTA
How to update game demo