commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Smuts" <aaron.smu...@verizon.net>
Subject RE: [simplestore] enhancements (was: [simplestore] inital check in)
Date Thu, 17 Jan 2002 05:24:29 GMT


> -----Original Message-----
> From: Juozas Baliuka [mailto:baliuka@mwm.lt]
> Sent: Wednesday, January 16, 2002 10:44 AM
 
> I think methods like "memory.overflow()" has no meaning in JAVA.
> You will never implement the best memory manager in JAVA application
or
> Application container, because
> JVM + GC will be better :).
> Use java.lang.ref.* there is no better way in JAVA at this time.
> 
 
When the number of items reaches a set maximum, I'd like to remove the
reference to them from the hashtable and spool them to disk.  Reaching
the set item number limit, the cache should overflow onto disk.  It is a
rough swap that's all.  

This technique doesn't endlessly leak memory.

Aaron




--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message