[jboss-user] [Clustering/JBoss] - Re: ConcurrentModificationException during session serializa

smarlow@redhat.com do-not-reply at jboss.com
Wed Jul 1 10:36:50 EDT 2009


Currently, deployed applications do not hold a RL lock while processing requests.  If we introduce a RL lock to be held while processing requests, will that be slower?  

There is some potential additional overhead to the ReadWriteLock (http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/locks/ReadWriteLock.html).

Perhaps it would be better (performance wise) to synchronize on the session level facade object as I think the performance should be close to what applications currently see (whether or not they also synchronize on the session object when accessing mutable attributes).  

What do you think?

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241218#4241218

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241218



More information about the jboss-user mailing list