3 Replies Latest reply on Oct 15, 2006 7:28 AM by Seweryn Niemiec

    Sync. replication is very slow

    Seweryn Niemiec Newbie

      Hi

      I'm sure it isn't normal, so I'm looking for help. I use TreeCache.put(Fqn fqn, Map data) to replicate about 50 objects.
      This call takes from 3 to 80 seconds to execute. Cluster (2 nodes :) is build
      over fast and reliable local network.

      Execution time analysis show that almost all time is spend in
      TreeCache.callRemoteMethods(List mbrs, MethodCall method_call, int
      mode, boolean exclude_self, long timeout)

      Config at bottom.

      Any ides?

      Regards,
      Seweryn Niemiec
      --
      Szczecin University of Technology
      Academic Center of Computer Science

      <?xml version="1.0" encoding="utf-8"?>
      <server>
       <classpath archives="jboss-cache.jar, jgroups.jar" codebase="./lib" />
       <mbean code="org.jboss.cache.TreeCache" name="jboss.cache:service=TreeCache">
       <depends>jboss:service=Naming</depends>
       <depends>jboss:service=TransactionManager</depends>
       <attribute name="TransactionManagerLookupClass">org.jboss.cache.DummyTransactionManagerLookup</attribute>
       <attribute name="NodeLockingScheme">PESSIMISTIC</attribute>
       <attribute name="IsolationLevel">REPEATABLE_READ</attribute>
       <attribute name="CacheMode">REPL_SYNC</attribute>
       <attribute name="UseReplQueue">false</attribute>
       <attribute name="ReplQueueInterval">0</attribute>
       <attribute name="ReplQueueMaxElements">0</attribute>
       <attribute name="ClusterName">GENERATED_BY_JBOSSCACHE_IDE</attribute>
       <attribute name="ClusterConfig">
       <config>
       <UDP ip_mcast="true" ip_ttl="64" loopback="false" mcast_addr="228.1.2.3" mcast_port="45577" mcast_recv_buf_size="80000" mcast_send_buf_size="150000"
       ucast_recv_buf_size="150000" ucast_send_buf_size="80000" bind_addr="10.1.32.1"/>
       <PING down_thread="false" num_initial_members="3" timeout="2000" up_thread="false" />
       <MERGE2 max_interval="20000" min_interval="10000" />
       <FD down_thread="true" shun="true" up_thread="true" />
       <FD_SOCK />
       <VERIFY_SUSPECT down_thread="false" timeout="1500" up_thread="false" />
       <pbcast.NAKACK down_thread="false" gc_lag="50" max_xmit_size="8192" retransmit_timeout="600,1200,2400,4800" up_thread="false" />
       <UNICAST down_thread="false" min_threshold="10" timeout="600,1200,2400" window_size="100" />
       <pbcast.STABLE desired_avg_gossip="20000" down_thread="false" up_thread="false" />
       <FRAG down_thread="false" frag_size="8192" up_thread="false" />
       <pbcast.GMS join_retry_timeout="2000" join_timeout="5000" print_local_addr="true" shun="true" />
       <pbcast.STATE_TRANSFER down_thread="true" up_thread="true" />
       </config>
       </attribute>
       <attribute name="FetchInMemoryState">true</attribute>
       <attribute name="InitialStateRetrievalTimeout">5000</attribute>
       <attribute name="SyncReplTimeout">120000</attribute>
       <attribute name="LockAcquisitionTimeout">15000</attribute>
       <attribute name="UseRegionBasedMarshalling">false</attribute>
       <attribute name="UseInterceptorMbeans">true</attribute>
       </mbean>
      </server>