[jbosscache-commits] JBoss Cache SVN: r5096 - in benchmarks/benchmark-fwk/cache-products: jbosscache-2.0.0/conf and 2 other directories.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Tue Jan 8 17:25:59 EST 2008


Author: mircea.markus
Date: 2008-01-08 17:25:59 -0500 (Tue, 08 Jan 2008)
New Revision: 5096

Modified:
   benchmarks/benchmark-fwk/cache-products/jbosscache-2.0.0/conf/pess-repl-sync-br.xml
   benchmarks/benchmark-fwk/cache-products/jbosscache-2.0.0/config.sh
   benchmarks/benchmark-fwk/cache-products/jbosscache-2.0.0/src/org/cachebench/cachewrappers/JBossCache200Wrapper.java
   benchmarks/benchmark-fwk/cache-products/jbosscache-2.1.0cr2/config.sh
Log:
added prefer IP v4....

Modified: benchmarks/benchmark-fwk/cache-products/jbosscache-2.0.0/conf/pess-repl-sync-br.xml
===================================================================
--- benchmarks/benchmark-fwk/cache-products/jbosscache-2.0.0/conf/pess-repl-sync-br.xml	2008-01-08 22:14:01 UTC (rev 5095)
+++ benchmarks/benchmark-fwk/cache-products/jbosscache-2.0.0/conf/pess-repl-sync-br.xml	2008-01-08 22:25:59 UTC (rev 5096)
@@ -20,60 +20,61 @@
       <attribute name="ClusterName">JBossCache-Cluster</attribute>
       <attribute name="ClusterConfig">
          <config>
-            <TCP start_port="7580"
-         loopback="false"
-         discard_incompatible_packets="true"
-         max_bundle_size="64000"
-         max_bundle_timeout="30"
-         use_incoming_packet_handler="true"
-         enable_bundling="true"
-         enable_diagnostics="true"
-         thread_naming_pattern="cl"
+            <UDP mcast_addr="228.10.10.10"
+                 mcast_port="45588"
+                 tos="8"
+                 ucast_recv_buf_size="20000000"
+                 ucast_send_buf_size="640000"
+                 mcast_recv_buf_size="25000000"
+                 mcast_send_buf_size="640000"
+                 loopback="false"
+                 discard_incompatible_packets="true"
+                 max_bundle_size="64000"
+                 max_bundle_timeout="30"
+                 use_incoming_packet_handler="true"
+                 ip_ttl="2"
+                 enable_bundling="false"
+                 enable_diagnostics="true"
 
-         use_concurrent_stack="true"
+                 use_concurrent_stack="true"
 
-	 recv_buf_size="20000000"
-	 send_buf_size="20000000"
+                 thread_naming_pattern="pl"
 
-         thread_pool.enabled="true"
-         thread_pool.min_threads="2"
-         thread_pool.max_threads="4"
-         thread_pool.keep_alive_time="5000"
-         thread_pool.queue_enabled="true"
-         thread_pool.queue_max_size="100000"
-         thread_pool.rejection_policy="discard"
+                 thread_pool.enabled="true"
+                 thread_pool.min_threads="1"
+                 thread_pool.max_threads="25"
+                 thread_pool.keep_alive_time="30000"
+                 thread_pool.queue_enabled="true"
+                 thread_pool.queue_max_size="10"
+                 thread_pool.rejection_policy="Run"
 
-         oob_thread_pool.enabled="true"
-         oob_thread_pool.min_threads="4"
-         oob_thread_pool.max_threads="8"
-         oob_thread_pool.keep_alive_time="5000"
-         oob_thread_pool.queue_enabled="false"
-         oob_thread_pool.queue_max_size="100"
-         oob_thread_pool.rejection_policy="Run"/>
+                 oob_thread_pool.enabled="true"
+                 oob_thread_pool.min_threads="1"
+                 oob_thread_pool.max_threads="4"
+                 oob_thread_pool.keep_alive_time="10000"
+                 oob_thread_pool.queue_enabled="true"
+                 oob_thread_pool.queue_max_size="10"
+                 oob_thread_pool.rejection_policy="Run"/>
 
-    <MPING timeout="2000" mcast_addr="232.1.2.3"
-            num_initial_members="3"/>
-    <MERGE2 max_interval="30000"
-            min_interval="10000"/>
-    <FD_SOCK/>
-    <FD timeout="10000" max_tries="5"   shun="true"/>
-    <VERIFY_SUSPECT timeout="1500"  />
-    <BARRIER />
-    <pbcast.NAKACK use_stats_for_retransmission="false"
-                   exponential_backoff="150"
-                   use_mcast_xmit="false" gc_lag="0"
-                   retransmit_timeout="50,300,600,1200"
-                   discard_delivered_msgs="true"/>
-    <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
-                   max_bytes="1000000"/>
-    <VIEW_SYNC avg_send_interval="60000"   />
-    <pbcast.GMS print_local_addr="true" join_timeout="3000"
-                shun="false"
-                view_bundling="true"/>
-    <FC max_credits="10000000"
-                    min_threshold="0.20"/>
-    <FRAG2 frag_size="60000"  />
-    <pbcast.STATE_TRANSFER  />
+            <PING timeout="2000" num_initial_members="3"/>
+            <MERGE2 max_interval="30000" min_interval="10000"/>
+            <FD_SOCK/>
+            <FD timeout="10000" max_tries="5" shun="true"/>
+            <VERIFY_SUSPECT timeout="1500"/>
+            <pbcast.NAKACK max_xmit_size="60000"
+                           use_mcast_xmit="false" gc_lag="0"
+                           retransmit_timeout="300,600,1200,2400,4800"
+                           discard_delivered_msgs="true"/>
+            <UNICAST timeout="300,600,1200,2400,3600"/>
+            <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
+                           max_bytes="400000"/>
+            <pbcast.GMS print_local_addr="true" join_timeout="5000"
+                        join_retry_timeout="2000" shun="false"
+                        view_bundling="true" view_ack_collection_timeout="5000"/>
+            <FRAG2 frag_size="60000"/>
+            <pbcast.STREAMING_STATE_TRANSFER use_reading_thread="true"/>
+            <!-- <pbcast.STATE_TRANSFER/> -->
+            <pbcast.FLUSH timeout="0"/>
          </config>
       </attribute>
       <attribute name="FetchInMemoryState">true</attribute>

Modified: benchmarks/benchmark-fwk/cache-products/jbosscache-2.0.0/config.sh
===================================================================
--- benchmarks/benchmark-fwk/cache-products/jbosscache-2.0.0/config.sh	2008-01-08 22:14:01 UTC (rev 5095)
+++ benchmarks/benchmark-fwk/cache-products/jbosscache-2.0.0/config.sh	2008-01-08 22:25:59 UTC (rev 5096)
@@ -14,5 +14,5 @@
 #--classpath was set
 
 #additional JVM options
-JVM_OPTIONS="$JVM_OPTIONS -Xmx1024m -DpreferIPv4Stack=true"
+JVM_OPTIONS="$JVM_OPTIONS -Xmx1024m -Djava.net.preferIPv4Stack=true"
 

Modified: benchmarks/benchmark-fwk/cache-products/jbosscache-2.0.0/src/org/cachebench/cachewrappers/JBossCache200Wrapper.java
===================================================================
--- benchmarks/benchmark-fwk/cache-products/jbosscache-2.0.0/src/org/cachebench/cachewrappers/JBossCache200Wrapper.java	2008-01-08 22:14:01 UTC (rev 5095)
+++ benchmarks/benchmark-fwk/cache-products/jbosscache-2.0.0/src/org/cachebench/cachewrappers/JBossCache200Wrapper.java	2008-01-08 22:25:59 UTC (rev 5096)
@@ -10,6 +10,7 @@
 import org.jboss.cache.buddyreplication.GravitateResult;
 import org.jboss.cache.marshall.NodeData;
 
+import java.net.URL;
 import java.util.Map;
 
 public class JBossCache200Wrapper implements CacheWrapper
@@ -20,9 +21,13 @@
    public void init(Map parameters) throws Exception
    {
       log.info("Creating cache with the following configuration: " + parameters);
-      cache = DefaultCacheFactory.getInstance().createCache((String)parameters.get("config"));
+      String configFile = (String) parameters.get("config");
+      URL url = Thread.currentThread().getContextClassLoader().getResource(configFile);
+      log.info("Loading cache with config file: " + url);
       log.info("Running follwing JBossCacheVersion: " + org.jboss.cache.Version.version);
-      log.info("Running follwing JBossCacheCodeName: " + org.jboss.cache.Version.codename);   }
+      log.info("Running follwing JBossCacheCodeName: " + org.jboss.cache.Version.codename);
+      cache = DefaultCacheFactory.getInstance().createCache(configFile);
+   }
 
    public void setUp() throws Exception
    {

Modified: benchmarks/benchmark-fwk/cache-products/jbosscache-2.1.0cr2/config.sh
===================================================================
--- benchmarks/benchmark-fwk/cache-products/jbosscache-2.1.0cr2/config.sh	2008-01-08 22:14:01 UTC (rev 5095)
+++ benchmarks/benchmark-fwk/cache-products/jbosscache-2.1.0cr2/config.sh	2008-01-08 22:25:59 UTC (rev 5096)
@@ -15,4 +15,4 @@
 #--classpath was set
 
 #additional JVM options
-JVM_OPTIONS="$JVM_OPTIONS -Xmx1024m -DpreferIPv4Stack=true"
\ No newline at end of file
+JVM_OPTIONS="$JVM_OPTIONS -Xmx1024m -Djava.net.preferIPv4Stack=true"
\ No newline at end of file




More information about the jbosscache-commits mailing list