[jboss-dev-forums] [Design of JBossCache] - Re: Lock striping broken for Second Level Cache use case
jason.greene@jboss.com
do-not-reply at jboss.com
Thu Mar 19 09:30:53 EDT 2009
"manik.surtani at jboss.com" wrote : "bstansberry at jboss.com" wrote : PerElementLockContainer.locks is using the default CHM c'tor which means 16 segments. That's low since this will be a very write-heavy map.
|
| Good point. Updating this to use the concurrencyLevel value, which defaults to 500.
You might want to use something a lot less than that. 500 is a small value, and that creates 500 hashmaps + locks. You only need a few per cpu.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4219468#4219468
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4219468
More information about the jboss-dev-forums
mailing list