I have build an application using PojoCache 1.4.1 SP6/7 and the leaf node has a
collection (HashSet) of objects. I need to frequently add/remove objects from
the collection. But at high load, some removed objects only exist as _lock_:
LOCK with no data attached. (See the object /2 under /transactions). Those
phantom objects cannot be removed.
The Cache configuration is READ_COMMITTED for IsolationLevel and REPL_ASYNC for
CacheMode and no eviction or passivation configured. Also
LockParentForChildInsertRemove set to true.
When accessing the collection, threads use Iterator to remove the object and no
synchronization is used when adding/removing objects from the collection. My
questions are:
1) JBossCache is thread-safe, so I do not need to use synchronization when
adding/removing objects from the collection, since those collection is proxy
anyway, right?
2) Is there any way to remove those "_lock_: LOCK" entries?
Thanks
sqian99
/0
_lock_: LOCK
__jboss:internal:class__: class
com.relayhealth.ch.rt.wscache.impl.SubmitterCacheNode
AOPInstance: [EMAIL PROTECTED]
fqn: /wsgway/INTERN/INTERN
/parent
__jboss:internal:class__: class
com.relayhealth.ch.rt.wscache.impl.BillerCacheNode
AOPInstance: [EMAIL PROTECTED]
/children
__jboss:internal:class__: class java.util.HashSet
AOPInstance: [EMAIL PROTECTED]
/0
_lock_: LOCK
__jboss:internal:class__: class com.relayhealth.ch.rt.wscache.impl.UserCacheNode
AOPInstance: [EMAIL PROTECTED]
fqn: /wsgway/INTERN/INTERN/rteuser
/transactions
__jboss:internal:class__: class java.util.HashSet
AOPInstance: [EMAIL PROTECTED]
/2
_lock_: LOCK
/parent
__jboss:internal:class__: class
com.relayhealth.ch.rt.wscache.impl.SubmitterCacheNode
AOPInstance: [EMAIL PROTECTED]
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112738#4112738
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112738
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user