[JBoss-user] [JBossCache] - Re: Clearing the cache

2006-03-15 Thread drosenbaum
Bela, I would like to follow up. I notice in FishEye that you changed the log statement in BaseEvictionAlgorithm.java from warn to debug but as far as I can tell you did not change it in LRUAlgorithm.java. Did you perhaps forget about it? I just want to make sure it wasn't missed, as this is

[JBoss-user] [JBossCache] - Re: Clearing the cache

2006-03-08 Thread drosenbaum
One comment though, could it be made into a debug or info message rather than a warning? I have my logs configured to show warnings and would rather not see such log messages at all, since it is not really a problem. I am not sure why it deserves a level of warn. View the original post : htt

[JBoss-user] [JBossCache] - Re: Clearing the cache

2006-03-08 Thread drosenbaum
Thank you Ben for resolving this. Cheers, Daniel View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928803#3928803 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928803 ---

[JBoss-user] [JBossCache] - Re: Clearing the cache

2006-03-06 Thread drosenbaum
After working for a while I was able to come up with a JUnit test case that reproduces this. The code is below. I started with the org.jboss.cache.eviction.LRUPolicyTest class and added the following test: public void testForEvictionInternalError() { | try { | String rootStr =

[JBoss-user] [JBossCache] - Re: Clearing the cache

2006-03-02 Thread drosenbaum
One other thought, you say that "the remove method is supposed to remove it from the eviction queue". When I call remove("/"), are all child elements of that node also being removed from the eviction queue? And the children's children at all levels of the subtree? Maybe what is happening is t

[JBoss-user] [JBossCache] - Re: Clearing the cache

2006-03-02 Thread drosenbaum
Thanks Ben for responding. Unfortunatly it does not happen every time. All I know is that I have had an application running with JBossCache for about 6 months now and I get messages such as this about once a week or 2, sometimes more often and sometimes less. I have a process that runs every

[JBoss-user] [JBossCache] - Re: Clearing the cache

2006-03-01 Thread drosenbaum
Could one of the "eviction guys" please comment on this issue? Or should I file a bug report? Thanks once again, Daniel View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927217#3927217 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&m

[JBoss-user] [JBossCache] - Re: Clearing the cache

2006-02-28 Thread drosenbaum
Thanks Bela for responding. But is this the correct way to clear the cache? Or is there some other proper method or API that I missed (and prefereably would not result in these error messages)? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926825#3926825

[JBoss-user] [JBossCache] - Clearing the cache

2006-02-27 Thread drosenbaum
I used the following code to remove all the nodes (all parents and children) in a TreeCache: TreeCache cache = | Fqn root = cache.get("/").getFqn(); | cache.remove(root); However shortly after this I get messages such as the following in the logs: [QW]21 Feb 2006 11:00:29,012 WARN org

[JBoss-user] [JBossCache] - Re: Eviction Using Too Much Memory?

2006-02-15 Thread drosenbaum
My system has many different types of data and I need them to expire at various times. Some things I need to expire in 10 minutes, other things after one hour, others after 12 hours. The objects are also not grouped as packages that the parent can have a policy, but all of my hibernate POs are

[JBoss-user] [JBossCache] - Re: Eviction Using Too Much Memory?

2006-02-14 Thread drosenbaum
Unfortunatly I don't have access to JProfiler. However I notice that a new Object[] array seems to be allocated for each Region defined, so it is not sufficient to create a test case that allocates only one array. My application has eviction policies on over 50 different regions. Might this b

[JBoss-user] [JBossCache] - Re: Eviction Using Too Much Memory?

2006-02-13 Thread drosenbaum
Oh yeah, I forgot to mention that I took this heap dump when the app was initialized right after Hibernate was finished configuring. Nothing was even placed in the cache yet at this point. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923430#3923430 Reply

[JBoss-user] [JBossCache] - Re: Eviction Using Too Much Memory?

2006-02-13 Thread drosenbaum
Ben, Thanks for your reply. The numbers in my profiling here is only the amount of memory used for the Object[] array with empty slots, I do not think it includes any objects actually referenced by the array itself. In other words, it is 13600272 bytes just for having an Object[] array of 200

[JBoss-user] [JBossCache] - Eviction Using Too Much Memory?

2006-02-10 Thread drosenbaum
Hi, I am heap profiling my application that uses JBoss Cache 1.2.4SP1 and am finding that the eviction seems to be using quite a bit of memory. In particular, here are snippets of my hprof output: | SITES BEGIN (ordered by live bytes) Fri Feb 10 09:54:18 2006 | percent l

[JBoss-user] [JBossCache] - Re: eviction errors

2005-04-07 Thread drosenbaum
Hi, There still has not been a response. Does anyone have a suggestion please how to clear the entire cache right now? And is it wrong to simply do cache.remove("/")? If so why is it wrong, will memory not be freed up or something like that? And why would the eviction class log these as err

[JBoss-user] [JBossCache] - Re: eviction errors

2005-04-04 Thread drosenbaum
Thanks for the answer Ben. In my application, I have certain data that periodically gets loaded into the database by a different app, a batch load process. I would like to clear my cache after this load process, so that a new database load is forced and the new data would be used, rather than

[JBoss-user] [JBossCache] - Re: eviction errors

2005-04-04 Thread drosenbaum
Actually, I traced these errors to consistenly happen after I do the following: | cache.remove("/"); | to remove all the contents of the cache. Is this in effect not a legal thing to do, since I get those eviction errors afterward? If it is not, what is the proper way to clear the conte

[JBoss-user] [Beginners Corner] - Re: Eviction Exceptions

2005-04-02 Thread drosenbaum
Sorry, I posted this in the wrong forum. I'll repost this in the JBossCache forum. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3872404#3872404 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3872404

[JBoss-user] [Beginners Corner] - Eviction Exceptions

2005-04-02 Thread drosenbaum
Hi, I constantly get exceptions such as this, using JBossCache with Hibernate: | 01 Apr 2005 12:27:37,217 WARN org.jboss.cache.eviction.LRUAlgorithm - evict(): Node not found with this fqn: //org/ifmc/qies/qw/data/po/QwEnvrmt Could have been evicted earlier already | | 01 Apr 2005 12:27

[JBoss-user] [JBossCache] - eviction errors

2005-04-01 Thread drosenbaum
Hi, I constantly get exceptions such as this, using JBossCache with Hibernate: | | 01 Apr 2005 12:27:37,217 WARN org.jboss.cache.eviction.LRUAlgorithm - evict(): Node not found with this fqn: //org/ifmc/qies/qw/data/po/QwEnvrmt Could have been evicted earlier already | | 01 Apr 200