[jboss-user] [JBoss Cache: Core Edition] - Re: what should I do

guazi do-not-reply at jboss.com
Mon Oct 13 03:09:47 EDT 2008


my configure file :

  | <?xml version="1.0" encoding="UTF-8"?>
  | <!-- =====================================================================
  | -->
  | <!-- -->
  | <!-- JBoss Cache Service Configuration -->
  | <!-- -->
  | <!-- =====================================================================
  | -->
  | <server>
  | 	<mbean code="org.jboss.cache.jmx.CacheJmxWrapper"
  | 		name="jboss.cache:service=Cache">
  | 		<!-- Configure the TransactionManager -->
  | 		<attribute name="TransactionManagerLookupClass">
  | 			com.topsoft.common.cache.CacheTransationManagerLookUp
  | 		</attribute>
  | 		<!-- Node locking level : SERIALIZABLE
  | 			REPEATABLE_READ (default)
  | 			READ_COMMITTED
  | 			READ_UNCOMMITTED
  | 			NONE -->
  | 		<attribute name="IsolationLevel">READ_COMMITTED</attribute>
  | 		<!-- Lock parent before doing node additions/removes -->
  | 		<attribute name="LockParentForChildInsertRemove">
  | 			true
  | 		</attribute>
  | 		<!-- Valid modes are LOCAL (default)
  | 			REPL_ASYNC
  | 			REPL_SYNC
  | 			INVALIDATION_ASYNC
  | 			INVALIDATION_SYNC -->
  | 		<attribute name="CacheMode">REPL_SYNC</attribute>
  | 		<!-- Max number of milliseconds to wait for a lock acquisition -->
  | 		<attribute name="LockAcquisitionTimeout">15000</attribute>
  | 		<!-- Specific eviction policy configurations. This is LRU -->
  | 
  | 		<attribute name="ClusterName">JBossCache-Cluster</attribute>
  | 
  | 		<depends>jgroups.mux:name=Multiplexer</depends>
  | 		<attribute name="MultiplexerStack">
  | 			fc-fast-minimalthreads
  | 		</attribute>
  | 
  | 		<!-- JGroups protocol stack properties.
  | 			ClusterConfig isn't used if the multiplexer is enabled and successfully initialized.
  | 		-->
  | 		<attribute name="ClusterConfig">
  | 			<config>
  | 				<!-- UDP: if you have a multihomed machine, set the bind_addr 
  | 					attribute to the appropriate NIC IP address -->
  | 				<!-- UDP: On Windows machines, because of the media sense feature
  | 					being broken with multicast (even after disabling media sense)
  | 					set the loopback attribute to true -->
  | 				<UDP mcast_addr="228.1.2.3" mcast_port="48866"
  | 					ip_ttl="64" ip_mcast="true" mcast_send_buf_size="150000"
  | 					mcast_recv_buf_size="80000" ucast_send_buf_size="150000"
  | 					ucast_recv_buf_size="80000" loopback="false" />
  | 				<PING timeout="2000" num_initial_members="3" />
  | 				<MERGE2 min_interval="10000" max_interval="20000" />
  | 				<FD shun="true" />
  | 				<FD_SOCK />
  | 				<VERIFY_SUSPECT timeout="1500" />
  | 				<pbcast.NAKACK gc_lag="50"
  | 					retransmit_timeout="600,1200,2400,4800" />
  | 				<UNICAST timeout="600,1200,2400,4800" />
  | 				<pbcast.STABLE desired_avg_gossip="400000" />
  | 				<FC max_credits="2000000" min_threshold="0.10" />
  | 				<FRAG2 frag_size="8192" />
  | 				<pbcast.GMS join_timeout="5000" shun="true"
  | 					print_local_addr="true" />
  | 
  | 				<pbcast.STATE_TRANSFER />
  | 
  | 			</config>
  | 
  | 		</attribute>
  | 
  | 		<!--
  | 			The max amount of time (in milliseconds) we wait until the
  | 			state (ie. the contents of the cache) are retrieved from
  | 			existing members in a clustered environment
  | 		-->
  | 		<attribute name="StateRetrievalTimeout">20000</attribute>
  | 
  | 		<!--
  | 			Number of milliseconds to wait until all responses for a
  | 			synchronous call have been received.
  | 		-->
  | 		<attribute name="SyncReplTimeout">15000</attribute>
  | 
  | 		<!-- Max number of milliseconds to wait for a lock acquisition -->
  | 		<attribute name="LockAcquisitionTimeout">10000</attribute>
  | 		<attribute name="ShutdownHookBehavior">DEFAULT</attribute>
  | 		<attribute name="UseLazyDeserialization">false</attribute>
  | 
  | 
  | 		<attribute name="EvictionPolicyConfig">
  | 			<config>
  | 				<attribute name="wakeUpIntervalSeconds">5</attribute>
  | 				<!-- This defaults to 200000 if not specified -->
  | 				<attribute name="eventQueueSize">200000</attribute>
  | 				<attribute name="policyClass">
  | 					org.jboss.cache.eviction.LRUPolicy
  | 				</attribute>
  | 
  | 				<!-- Cache wide default -->
  | 				<region name="/_default_">
  | 					<attribute name="maxNodes">5000</attribute>
  | 					<attribute name="timeToLiveSeconds">1000</attribute>
  | 				</region>
  | 			</config>
  | 		</attribute>
  | 		<attribute name="CacheLoaderConfig" replace="false">
  | 			<config>
  | 				<shared>false</shared>
  | 				<cacheloader>
  | 
  | 					<class>
  | 						org.jboss.cache.loader.bdbje.BdbjeCacheLoader
  | 					</class>
  | 					<properties>location=./jbossCacheTemp/</properties>
  | 					<async>false</async>
  | 					<!-- if set to true, purges the contents of this cache loader when the cache starts up.
  | 						Defaults to false. -->
  | 					<purgeOnStartup>true</purgeOnStartup>
  | 				</cacheloader>
  | 			</config>
  | 		</attribute>
  | 	</mbean>
  | </server>
  | 

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

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



More information about the jboss-user mailing list