commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerhard Froehlich" <g-froehl...@gmx.de>
Subject RE: [simplestore] inital check in
Date Mon, 14 Jan 2002 16:28:17 GMT
Juozas,

>From: Juozas Baliuka [mailto:baliuka@mwm.lt]
>
>>
>>StoreJanitorImpl: you can register your Memory Stores in
>>this class. A background Thread checks if memory running
>>slow in you JVM and if yes it frees some objects out of the
>>registered Stores.
>
>Hi,
>I think it is better to use java.lang.ref.* to solve problems related to 
>memory management.
>Application threads are not permitted  in EJB container and I believe GC 
>will do it better.
>
>It is from JDK documentation :
>"Soft reference objects, which are cleared at the discretion of the garbage 
>collector in response to memory demand. Soft references are most often used 
>to implement memory-sensitive caches. "

Aha, it's a shame but I never looked into this. But I do it right now!
Does anybody(you) have experiences with this soft references and 
how to use them?

Yes I know RTFM ;-)!

  Gerhard
 
"A man with one watch knows what time it is, 
a man with two watches is never sure... 
(Albert Einstein)"


--
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