Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

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,
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!