[jboss-user] [JBoss Cache: Core Edition] - eviction, clustering without cacheloader

2008-05-02 Thread nnnnn
It seems to me that you've got a bug with the way that you treat evictions - data integrity is only maintained if there's a CacheLoader backing the cache. I say this, because the javadoc on CacheImpl.evict(Fqn) method (2.0.0, at any rate) includes: Note that eviction is done only in local mode,

[jboss-user] [JBoss Cache: Core Edition] - Re: eviction, clustering without cacheloader

2008-05-02 Thread nnnnn
Hmmm. Probably won't quite work for us - we need the timeToLiveSeconds behavior in LRU policy. To mimic that, we'd need to set a new ExpirationPolicy time on every get, which would kill performance (due to replication). One thing that I'm thinking is adding a ClusteredCacheLoader. So if one

[jboss-user] [JBossCache] - Re: locking CacheSPI

2008-03-11 Thread nnnnn
Right, that's what I would like to do. But how do I do that from application code without having my app code operate in an Interceptor? Am I missing something easy? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4135763#4135763 Reply to the post :

[jboss-user] [JBossCache] - optionoverrides and DataVersion

2008-03-06 Thread nnnnn
It's possible that optimistic locking and using OptionOverrides to tweak optimistic locking to do some things that we want to do. However, it seems like the fact that the way that the DataVersion is set for an attribute (using global OptionOverrides) is not thread safe at all. From the

[jboss-user] [JBossCache] - Re: optionoverrides and DataVersion

2008-03-06 Thread nnnnn
Hmmm. Maybe I am wrong. Let me rephrase it: Does getInvocationContext() return a different object per thread? Is that what makes it so that two different threads doing this at the same time don't step on each others' toes? View the original post :

[jboss-user] [JBossCache] - Re: optionoverrides and DataVersion

2008-03-06 Thread nnnnn
(slaps self on head). I looked at the code, and see that InvocationContext is ThreadLocal. So anybody, can I just have confirmation that using OptionOverrides to set data version for optimistic locking is thread-safe? :-P View the original post :

[jboss-user] [JBossCache] - locking CacheSPI

2008-02-28 Thread nnnnn
We have a need (we think - unless somebody has a better suggestion) to try to do lock nodes in some situations. When our application decides to write to the cache, it needs to check what's already at the node that's there, and then depending on what it finds, it may choose to put the new

[jboss-user] [JBossCache] - Re: CacheLoaderInterceptor behavior

2008-01-18 Thread nnnnn
Hmmm. Interesting. I see the general idea of what you're doing. We'll take a look at adding that functionality for synchronous gets. We also may end up declaring that the performance penalty for our expected use case is small enough that we'll live with it as it is. Thanks. View the

[jboss-user] [JBossCache] - CacheLoaderInterceptor behavior

2008-01-16 Thread nnnnn
We're using a custom CacheLoader in a somewhat non-standard way. Our CacheLoader is read-only, and it's designed to get a node from a different server if not on the current server (the difference between it and the TcpDelegatingCacheLoader is that this cacheloader figures out where to go and

[jboss-user] [JBossCache] - Re: Interception of cache lookup calls

2008-01-02 Thread nnnnn
JbossCache contains this functionality - look at CacheLoaders (specifically, JDBCCacheLoader). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4116545#4116545 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4116545

[jboss-user] [JBossCache] - Re: ClusteredCacheLoader + LOCAL CacheMode

2007-12-06 Thread nnnnn
lovelyliatroim wrote : | anonymous wrote : | | From your description, it sounds like you might want to use LOCAL cache mode and a TCPCacheLoader. Have you looked into that? | | | | I have read about it but the thing that i dont want is that when you add an entry into one of the

[jboss-user] [JBossCache] - Re: ClusteredCacheLoader + LOCAL CacheMode

2007-11-30 Thread nnnnn
From your description, it sounds like you might want to use LOCAL cache mode and a TCPCacheLoader. Have you looked into that? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109427#4109427 Reply to the post :

[jboss-user] [JBossCache] - Re: LRU policy for separated object

2007-11-27 Thread nnnnn
It sounds like you're putting both a and b under different keys in the same node. Have you tried putting a and b in different nodes? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4108240#4108240 Reply to the post :

[jboss-user] [JBossCache] - Re: FetchInMemoryState + jgroups config

2007-10-03 Thread nnnnn
They do. It does, however, seem to be a multicast-related problem with one of our boxes. When the other server comes up first, things work fine, and when we use a TCP configuration, everything's fine. So probably not a problem with JGroups or JBossCache. Thanks. View the original post :

[jboss-user] [JBossCache] - Re: FetchInMemoryState + jgroups config

2007-09-13 Thread nnnnn
64-bit Ubuntu linux. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4084096#4084096 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4084096 ___ jboss-user mailing list

[jboss-user] [JBossCache] - FetchInMemoryState + jgroups config

2007-09-12 Thread nnnnn
I'm having trouble getting things configured properly to get the state transferred to a new server joining a cluster (jbosscache 2.0.0GA). Relevant config: | attribute name=ClusterConfig | config | UDP mcast_addr=228.1.2.3 mcast_port=48866 |

[jboss-user] [JBossCache] - Re: Is there a way to view evictions from the cache without

2007-09-11 Thread nnnnn
You could use JMX. The jbosscache documentation tells you how enable JMX. Depending on what your needs are, you could then use jconsole to view evictions. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4083162#4083162 Reply to the post :

[jboss-user] [JBossCache] - Re: Overflow berfore OutOfMemory

2007-07-16 Thread nnnnn
What would be really nice to be able to do is to be able to separate the questions of: Do I need to evict? and What should I evict? into different responsibilities So that you could have an LRU eviction policy that evicts when a certain memory threshold is reached, or a FIFO eviction

[jboss-user] [JBossCache] - how much memory overhead per node?

2007-07-06 Thread nnnnn
Has anybody done some analysis or profiling to determine what the memory overhead for TreeCache is per node? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4061460#4061460 Reply to the post :

[jboss-user] [JBossCache] - Re: Overflow berfore OutOfMemory

2007-07-06 Thread nnnnn
Has anybody done this (eviction policy based on consumed memory) yet (now 7 months after the initial conversation)? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4061469#4061469 Reply to the post :

[jboss-user] [JBossCache] - Re: 2.0 and JMX

2007-07-05 Thread nnnnn
A couple of things: It would be a good idea if this were documented. The 2.0 documentation still implies that no registration is necessary for JMX. Second, anybody have quick hints (or links) for a JMX newbie? I'm not really interested in learning so much about it right now - I just want to

[jboss-user] [JBossCache] - Re: 2.0 and JMX

2007-07-05 Thread nnnnn
To answer my own question, this seems to work: _cache = createCache(); | ArrayList mbServers = MBeanServerFactory.findMBeanServer( null ); | if (mbServers.size() 0) | { | MBeanServer mbs = (MBeanServer)

[jboss-user] [JBossCache] - jbosscache MBeans not appearing in jconsole

2007-07-03 Thread nnnnn
We're using jbosscache in a standalone application. Starting the application with jmxremote turned on, I can connect to the application. The list of MBeans, however, doesn't include jboss.cache, so the JBossCache mbeans aren't visible. I really don't see much in the documentation about

[jboss-user] [JBossCache] - Re: jbosscache MBeans not appearing in jconsole

2007-07-03 Thread nnnnn
Sorry - 2.0 release candidate. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4060125#4060125 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4060125 ___ jboss-user mailing list