I'm adding 100,000 items to the cache (single node). Then I do 100,000 random reads. Without the config it takes around 774ms with this config 1273ms. The same test using a LinkedHashMap only takes 182ms (with synchronization).
This is the config I'm using: <?xml version="1.0" encoding="UTF-8"?> | <server> | <classpath codebase="./lib" archives="jboss-cache.jar, jgroups.jar"/> | <mbean code="org.jboss.cache.TreeCache" | name="jboss.cache:service=TreeCache"> | <depends>jboss:service=Naming</depends> | <depends>jboss:service=TransactionManager</depends> | <attribute name="IsolationLevel">REPEATABLE_READ</attribute> | <attribute name="CacheMode">LOCAL</attribute> | <attribute name="MaxCapacity">200000</attribute> | <attribute name="InitialStateRetrievalTimeout">2000000</attribute> | <attribute name="SyncReplTimeout">10000</attribute> | <attribute name="LockAcquisitionTimeout">15000</attribute> | <attribute name="LockLeaseTimeout">60000</attribute> | <attribute name="EvictionPolicyClass">org.jboss.cache.eviction.LRUPolicy</attribute> | <attribute name="EvictionPolicyConfig"> | <config> | <attribute name="wakeUpIntervalSeconds">1</attribute> | <region name="/_default_"> | <attribute name="maxNodes">200000</attribute> | <attribute name="timeToIdleSeconds">0</attribute> | </region> | </config> | </attribute> | </mbean> | </server> View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3879420#3879420 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3879420 ------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
