[jboss-user] [JBossCache] - Performance Issue: DB Hit quicker then Cache

huangjd do-not-reply at jboss.com
Tue Aug 8 11:34:54 EDT 2006


I am using JBoss Tree Cache as a Local read-only cache, with Hibernate. 

When loading items from the cache, there seems to be no performance or a negative performance then when loading items from the DB. (Loading items from the DB are faster in most cases then loading items from the cache). And with larger cached items, the performance is .5 seconds or greater. 

I can't seem to understand why this is the case. Maybe someone could point me in a direction so I can look as to why and how this is happening. maybe some tools to look at the JVM etc. . .

Thanks in advance.

Here is my Config File:

  | <?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="NodeLockingScheme">PESSIMISTIC</attribute>
  | 		<attribute name="IsolationLevel">REPEATABLE_READ</attribute>
  | 		<attribute name="CacheMode">LOCAL</attribute>
  | 		<attribute name="UseReplQueue">false</attribute>
  | 		<attribute name="ReplQueueInterval">0</attribute>
  | 		<attribute name="ReplQueueMaxElements">0</attribute>
  | 		<attribute name="LockAcquisitionTimeout">15000</attribute>
  | 		<attribute name="EvictionPolicyConfig">
  | 			<config>
  | 				<attribute name="wakeUpIntervalSeconds">5</attribute>
  | 				<!-- Cache wide default -->
  | 				<region name="/_default_"
  | 					policyClass="org.jboss.cache.eviction.LRUPolicy">
  | 					<attribute name="maxNodes">10000</attribute>
  | 					<attribute name="timeToLiveSeconds">10000</attribute>
  | 				</region>
  | 			</config>
  | 		</attribute>
  | 		<attribute name="UseRegionBasedMarshalling">false</attribute>
  | 
  | 	</mbean>
  | </server>
  | 



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

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



More information about the jboss-user mailing list