Mircea (or other),
Is it possible to configure implicitly created nodes so they are evicted?
I have a cache (JBC 303) which will have 100,000 entries, and a depth of 5. So
that is, potentially, 400,000 implicitly created nodes hanging around
indefinitely (if I have correctly understood).
Thanks,
anonymous wrote :
| The general rule is that implicitly created nodes are not being counted for
eviction. They are not structural nodes neither (e.g. if you add something to
them they will be considered for eviction).
|
Hi Mircea,
Ok I need to brush up on my jboss cache terminology, so
anonymous wrote : Eviction timer thread runs every 3 seconds. So back to the
original question, how does maxNodes work??
The general rule is that implicitly created nodes are not being counted for
eviction. They are not structural nodes neither (e.g. if you add something to
them they will be co
I'll let Mircea answer, he's the guy who added the resident node feature. :-)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4185779#4185779
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185779
So here is the config for the test
|
| 3
| 30
| 30
|
|
|
My sample test case
| public void evictionTest(String configPath) throws Exception{
| CacheFactory factory = DefaultCacheFactory.getIns
anonymous wrote :
| Have you marked any of these as resident?
|
No none marked as resident!!
Will dig out my test case and post, not sure the config is right because i was
playing around with different scenarios, will set up properly tomorrow and post
it.
View the original post :
http://
"lovelyliatroim" wrote :
| I have done the test on it and looks to me like its based on nodes with
data attached, could someone just confirm this for me on how it works.
|
Have you marked any of these as resident?
View the original post :
http://www.jboss.com/index.html?module=bb&op=view
Just seen this in the documents
anonymous wrote :
| Q. I have set up an eviction region but none of the nodes in that region
get evicted.
|
|
|
| Make sure that the region starts with the / character, i.e.
|
| http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4185033#4
Also documentation for this
anonymous wrote :
| # timeToLiveSeconds - The amount of time a node is not written to or read
(in seconds) before the node is swept away. 0 denotes no limit.
|
If you leave it out, you get an exception like so
|
| org.jboss.cache.config.ConfigurationExc