On Thu, 08 Sep 2011 19:59:03 +0200, Howard Lewis Ship <[email protected]> wrote:

That's an interesting idea, I don't know why it didn't occur to me.

I am concerned that the JVM might discard page instances too often
when memory gets tight.


In Oracle's JDK, unused SoftReferences are kept alive for 1 second per available MB of heap space:

http://www.oracle.com/technetwork/java/hotspotfaq-138619.html#gc_softrefs

e.g. with 120 MB free, a SoftReference that is never used will still be around for another two minutes.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to