out of memory

Stefan Burstroem f94sbu at efd.lth.se
Sat Jan 9 19:44:02 PST 1999

In article <36988531.DE2759F5 at kolej.mff.cuni.cz> you wrote:

>But if OutOfMemoryException is thrown in more threads in the second
>thread exception cannot be allocated. Is solution preallocate
>OutOfMemoryException per thread? Probably not - when I catch
>OutOfMemoryException and in my action another OutOfMemoryException is
>thrown (is it posible?) JVM must allocate new OutOfMemoryException...

One solution to handle this is to have a preallocated OutOfMemoryException
that never gets gced or modified so it doesn't matter how many other
threads or calls that uses it. I know that 1 JVM from 1 big company uses
this method... :-)

regards, Stefan Burstroem

>> Irl: Stefan Burstroem <<  >> Omnipresence Intl. <<  >> Irc: Yabba <<
 >> Phone: +46 (0)46-211 40 84 << >> EMail: stefan at omnipresence.com <<

More information about the kaffe mailing list