Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RMS - Leave open or close after each operation?  RSS feed

James Hodgkiss
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My midlet application is running very low on heap memory.

The app seems to struggle when doing RMS operations until I eventually get an OutOfMemoryError.

Does anyone have tips for RMS use and keeping the heap usage down? At the moment, I open and close the RMS for each operation. I am considering keeping it open all the time, but just wondered if anyone knew the extent of the effect this might have on my precious heap memory??

Many thanks,
Curse your sudden but inevitable betrayal! And this tiny ad too!
Thoughts on deprecation in Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!