× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 1/21/2014 4:02 PM, Scott Klement wrote:

You are running out of memory. I think it's just 'chance' that this
occurs on the 'close' -- it could potentially occur anywhere.

Make sure you are cleaning up after yourself (calling the various 'free'
functions as needed). If this is still happening, consider increasing
the amount of memory available to the JVM.

As an RPG programmer, I rarely (if ever) think about returning memory
back to the system. Automatic storage, the heap and static storage seem
so... theoretical until we get into the static keyword on the
d-specifications.

The rest of the programming world isn't so lucky. Java grabs memory
from the system and doesn't give it back until we tell Java that we're
done with it. It's pretty easy for a Java newbie (raises hand) to
exhaust memory. So the first half of Scott's advice is very important
to bear in mind.

Aside from not freeing up memory that's no longer needed, there is
another possibility: You might actually be using all that memory
intentionally. I routinely run out of memory when I'm trying to build a
spreadsheet with say half a million rows. Not because I forgot to free
things up, but because such a large spreadsheet takes up a lot of room -
more than the JVM is configured for. That's where the second half of
Scott's advice comes into play.
--buck

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.