[jbosscache-commits] JBoss Cache SVN: r4269 - in core/trunk: tests/scripts and 1 other directory.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Wed Aug 15 03:04:13 EDT 2007


Author: manik.surtani at jboss.com
Date: 2007-08-15 03:04:13 -0400 (Wed, 15 Aug 2007)
New Revision: 4269

Added:
   core/trunk/src/test-scripts/resources/TcpCacheServer/
   core/trunk/src/test-scripts/resources/bench.txt
   core/trunk/src/test-scripts/resources/bench.xml
   core/trunk/src/test-scripts/resources/benchmark-50.sh
   core/trunk/src/test-scripts/resources/benchmark-fieldEmulator.sh
   core/trunk/src/test-scripts/resources/benchmark-jar.sh
   core/trunk/src/test-scripts/resources/benchmark-pojocache.sh
   core/trunk/src/test-scripts/resources/benchmark.sh
   core/trunk/src/test-scripts/resources/loopFlatteningTest.sh
   core/trunk/src/test-scripts/resources/profile.sh
   core/trunk/src/test-scripts/resources/readme.txt
Removed:
   core/trunk/tests/scripts/TcpCacheServer/
   core/trunk/tests/scripts/bench.txt
   core/trunk/tests/scripts/bench.xml
   core/trunk/tests/scripts/benchmark-50.sh
   core/trunk/tests/scripts/benchmark-fieldEmulator.sh
   core/trunk/tests/scripts/benchmark-jar.sh
   core/trunk/tests/scripts/benchmark-pojocache.sh
   core/trunk/tests/scripts/benchmark.sh
   core/trunk/tests/scripts/loopFlatteningTest.sh
   core/trunk/tests/scripts/profile.sh
   core/trunk/tests/scripts/readme.txt
Log:
Moved test scripts

Copied: core/trunk/src/test-scripts/resources/TcpCacheServer (from rev 4263, core/trunk/tests/scripts/TcpCacheServer)

Copied: core/trunk/src/test-scripts/resources/bench.txt (from rev 4263, core/trunk/tests/scripts/bench.txt)
===================================================================
--- core/trunk/src/test-scripts/resources/bench.txt	                        (rev 0)
+++ core/trunk/src/test-scripts/resources/bench.txt	2007-08-15 07:04:13 UTC (rev 4269)
@@ -0,0 +1,27 @@
+# Number of loops to run
+loops=100
+# Number of clients on each node
+threads=4
+# Indicate whether the sleep interval is random or not
+random_sleep_interval=false
+# Sleep interval between each loop
+sleep_interval_millis=0
+# The top object is a Student with Courses. This is the Courses size.
+object_list_size=100
+# This specify who are in this clustering group. It won't start untill
+# everyone is up. You can specify bogus IP now since we only count 
+# the number now.
+members=172.16.129.57, 172.16.130.57, 172.16.131.57
+# Whether to use transaction or not
+transaction=true
+# location of cache xml
+cache_config=output/bench.xml
+#
+# PojoCache specific
+#
+
+# Running PojoCache test
+run_PojoCache=false
+# ratio of Pojo attach vs. field update. 1 means all pojo attachment (expensive)
+# 5 means it will update every 5 times (e.g., 4 field and 1 pojo update)
+update_pojo_interval=1

Copied: core/trunk/src/test-scripts/resources/bench.xml (from rev 4263, core/trunk/tests/scripts/bench.xml)
===================================================================
--- core/trunk/src/test-scripts/resources/bench.xml	                        (rev 0)
+++ core/trunk/src/test-scripts/resources/bench.xml	2007-08-15 07:04:13 UTC (rev 4269)
@@ -0,0 +1,144 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- ===================================================================== -->
+<!--                                                                       -->
+<!--  Customized TreeCache Service Configuration for Tomcat 5 Clustering   -->
+<!--                                                                       -->
+<!-- ===================================================================== -->
+
+<server>
+
+   <!-- ==================================================================== -->
+   <!-- Defines TreeCache configuration                                      -->
+   <!-- ==================================================================== -->
+
+   <mbean code="org.jboss.cache.CacheImpl"
+          name="jboss.cache:service=TomcatClusteringCache">
+
+      <depends>jboss:service=Naming</depends>
+      <depends>jboss:service=TransactionManager</depends>
+
+      <!-- Configure the TransactionManager -->
+      <attribute name="TransactionManagerLookupClass">org.jboss.cache.transaction.GenericTransactionManagerLookup</attribute>
+
+      <!--
+          Isolation level : SERIALIZABLE
+                            REPEATABLE_READ (default)
+                            READ_COMMITTED
+                            READ_UNCOMMITTED
+                            NONE
+      -->
+      <attribute name="IsolationLevel">REPEATABLE_READ</attribute>
+
+      <!--
+           Valid modes are LOCAL, REPL_ASYNC and REPL_SYNC
+      -->
+      <attribute name="CacheMode">REPL_SYNC</attribute>
+
+      <!-- Name of cluster. Needs to be the same for all clusters, in order
+           to find each other
+      -->
+      <attribute name="ClusterName">Tomcat-Cluster</attribute>
+
+      <!-- JGroups protocol stack properties. Can also be a URL,
+           e.g. file:/home/bela/default.xml
+         <attribute name="ClusterProperties"></attribute>
+      -->
+
+      <attribute name="ClusterConfig">
+         <!-- fc-fast-minimalthreads.xml with some FC tuning
+                discard_incompatible_packets="true"
+                tos="16"
+         -->
+         <config>
+            <UDP mcast_addr="230.1.2.3" mcast_port="45577"
+                 ucast_recv_buf_size="20000000"
+                 ucast_send_buf_size="640000"
+                 mcast_recv_buf_size="25000000"
+                 mcast_send_buf_size="640000"
+                 loopback="false"
+                 max_bundle_size="64000"
+                 max_bundle_timeout="30"
+                 use_incoming_packet_handler="true"
+                 use_outgoing_packet_handler="false"
+                 ip_ttl="2"
+                 down_thread="false" up_thread="false"
+                 enable_bundling="true"/>
+            <PING timeout="2000"
+                  down_thread="false" up_thread="false" num_initial_members="3"/>
+            <!-- MERGE2 max_interval="100000"
+         down_thread="false" up_thread="false" min_interval="20000"/ -->
+            <FD_SOCK down_thread="false" up_thread="false"/>
+            <!--VERIFY_SUSPECT timeout="1500" down_thread="false"/-->
+            <pbcast.NAKACK max_xmit_size="60000"
+                           use_mcast_xmit="false" gc_lag="2"
+                           retransmit_timeout="100,200,300,600,1200,2400,4800"
+                           down_thread="false" up_thread="false"
+                           discard_delivered_msgs="true"/>
+            <UNICAST timeout="300,600,1200,2400,3600"
+                     down_thread="false" up_thread="false"/>
+            <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
+                           down_thread="false" up_thread="false"
+                           max_bytes="400000"/>
+            <pbcast.GMS print_local_addr="true" join_timeout="3000"
+                        down_thread="false" up_thread="false"
+                        join_retry_timeout="2000" shun="true"/>
+            <!-- Comment it out when we use repl_sync. We don't need fc when it is sync mode. -->
+            <!--FC max_credits="2000000" down_thread="false" up_thread="false"
+           min_threshold="0.20" max_block_time="5000"/-->
+            <FRAG2 frag_size="60000" down_thread="false" up_thread="false"/>
+            <!--Turn COMPRESS on when running PojoCache-->
+            <!--COMPRESS min_size="4000" compression_level="1"/-->
+            <pbcast.STATE_TRANSFER up_thread="false" down_thread="false"/>
+         </config>
+
+         <!-- tcp-fast.xml | You have to edit bind_addr correctly. -->
+         <!--
+           <config>
+             <TCP bind_addr="192.168.160.101"
+                  recv_buf_size="20000000"
+                  send_buf_size="640000"
+                  loopback="false"
+                  discard_incompatible_packets="true"
+                  max_bundle_size="64000"
+                  max_bundle_timeout="30"
+                  use_incoming_packet_handler="true"
+                  use_outgoing_packet_handler="false"
+                  down_thread="false" up_thread="false"
+                  enable_bundling="true"
+                  start_port="7800"
+                  use_send_queues="false"
+                  sock_conn_timeout="300" skip_suspected_members="true"/>
+             <MPING timeout="2000"
+                    num_initial_members="2"
+                    mcast_addr="${jboss.partition.udpGroup:230.1.2.7}"
+                    bind_addr="192.168.160.101"
+                    down_thread="false" up_thread="false"/>
+             <FD_SOCK down_thread="false" up_thread="false"/>
+             <pbcast.NAKACK max_xmit_size="60000"
+                            use_mcast_xmit="false" gc_lag="10"
+                            retransmit_timeout="100,200,300,600,1200,2400,4800"
+                            down_thread="false" up_thread="false"
+                            discard_delivered_msgs="true"/>
+             <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
+                            down_thread="false" up_thread="false"
+                            max_bytes="400000"/>
+             <VIEW_SYNC avg_send_interval="60000" down_thread="false" up_thread="false" />
+             <pbcast.GMS print_local_addr="true" join_timeout="3000"
+                         down_thread="false" up_thread="false"
+                         join_retry_timeout="2000" shun="true"/>
+             <FC max_credits="2000000" down_thread="false" up_thread="false"
+                 min_threshold="0.10" max_block_time="1000"/>
+             <pbcast.STATE_TRANSFER up_thread="false" down_thread="false"/>
+           </config>
+         -->
+      </attribute>
+
+      <!-- Max number of milliseconds to wait for a lock acquisition -->
+      <attribute name="LockAcquisitionTimeout">14000</attribute>
+      <attribute name="SyncReplTimeout">15000</attribute>
+
+      <attribute name="UseRegionBasedMarshalling">false</attribute>
+   </mbean>
+
+</server>

Copied: core/trunk/src/test-scripts/resources/benchmark-50.sh (from rev 4263, core/trunk/tests/scripts/benchmark-50.sh)
===================================================================
--- core/trunk/src/test-scripts/resources/benchmark-50.sh	                        (rev 0)
+++ core/trunk/src/test-scripts/resources/benchmark-50.sh	2007-08-15 07:04:13 UTC (rev 4269)
@@ -0,0 +1,77 @@
+#
+# Script to run benchmark
+# Run this under JBossCahe dir
+#
+
+#!/bin/sh
+
+if [ "$1" == "debug" ]; then
+    MODE="debug"
+    shift
+fi 
+
+if [ "$1" == "profile" ]; then
+    MODE="profile"
+    shift
+fi
+    
+CACHE_HOME=`dirname $0`
+CACHE_LIB=$CACHE_HOME/lib
+CACHE_LIB_50=$CACHE_HOME/lib-50
+CACHE_OUTPUT=$CACHE_HOME/output
+
+CLASSPATH=$CACHE_OUTPUT/etc:$CACHE_OUTPUT/classes:$CACHE_OUTPUT/build:$CACHE_OUTPUT/test-classes
+
+for i in ${CACHE_LIB}/*.jar
+do
+CLASSPATH=${CLASSPATH}:${i}
+done
+
+for i in ${CACHE_LIB}/sleepycat/*.jar
+do
+CLASSPATH=${CLASSPATH}:${i}
+done
+
+for i in ${CACHE_LIB_50}/*.jar
+do
+CLASSPATH=${CLASSPATH}:${i}
+done
+
+AOP_PATH=$CACHE_OUTPUT/etc
+
+LOG4J=$CACHE_OUTPUT/etc/log4j.xml
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false;
+case "`uname`" in
+    CYGWIN*)
+        cygwin=true
+        ;;
+esac
+
+if [ $cygwin = "true" ]; then
+   CP=`cygpath -wp $CLASSPATH`
+   L4J=`cygpath -wp $LOG4J`
+else
+   CP=$CLASSPATH
+   L4J=$LOG4J
+fi
+
+if [ "$MODE" == "debug" ]; then
+JAVA_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=n"
+fi
+
+# Use aopc now instead of load-time mode
+#sh build.sh aopc50
+ARGS="-Dlog4j.configuration=file:$L4J"
+#ARGS="-Dbind.address=${MYTESTIP_1} -Dlog4j.configuration=file:$L4J"
+
+if [ "$MODE" == "profile" ]; then
+ JAVA_OPTS="-agentlib:jprofilerti=port=8849  -Xbootclasspath/a:C:\Program Files\jprofiler4\bin\agent.jar"
+JAVA_OPTS="$JAVA_OPTS -Xmx128m"
+JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
+fi
+
+java -cp "$CP" $ARGS $JAVA_OPTS -Djboss.aop.aoppath=$AOP_PATH  org.jboss.cache.Server $@
+#java -cp "$CP" $ARGS $JAVA_OPTS org.jboss.cache.Server $@
+

Copied: core/trunk/src/test-scripts/resources/benchmark-fieldEmulator.sh (from rev 4263, core/trunk/tests/scripts/benchmark-fieldEmulator.sh)
===================================================================
--- core/trunk/src/test-scripts/resources/benchmark-fieldEmulator.sh	                        (rev 0)
+++ core/trunk/src/test-scripts/resources/benchmark-fieldEmulator.sh	2007-08-15 07:04:13 UTC (rev 4269)
@@ -0,0 +1,77 @@
+#
+# Script to run benchmark
+# Run this under JBossCahe dir
+#
+
+#!/bin/sh
+
+if [ "$1" == "debug" ]; then
+    MODE="debug"
+    shift
+fi 
+
+if [ "$1" == "profile" ]; then
+    MODE="profile"
+    shift
+fi
+    
+CACHE_HOME=`dirname $0`
+CACHE_LIB=$CACHE_HOME/lib
+CACHE_OUTPUT=$CACHE_HOME/output
+
+CLASSPATH=$CACHE_OUTPUT/etc:$CACHE_OUTPUT/classes:$CACHE_OUTPUT/build:$CACHE_OUTPUT/test-classes
+
+for i in ${CACHE_LIB}/*.jar
+do
+CLASSPATH=${CLASSPATH}:${i}
+done
+
+for i in ${CACHE_LIB}/sleepycat/*.jar
+do
+CLASSPATH=${CLASSPATH}:${i}
+done
+
+for i in ${CACHE_OUTPUT}/*.jar
+do
+CLASSPATH=${CLASSPATH}:${i}
+done
+
+
+AOP_PATH=$CACHE_OUTPUT/etc
+
+LOG4J=$CACHE_OUTPUT/etc/log4j.xml
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false;
+case "`uname`" in
+    CYGWIN*)
+        cygwin=true
+        ;;
+esac
+
+if [ $cygwin = "true" ]; then
+   CP=`cygpath -wp $CLASSPATH`
+   L4J=`cygpath -wp $LOG4J`
+else
+   CP=$CLASSPATH
+   L4J=$LOG4J
+fi
+
+if [ "$MODE" == "debug" ]; then
+JAVA_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=n"
+fi
+
+# Use aopc now instead of load-time mode
+#sh build.sh aopcWithAnnoc
+ARGS="-Dlog4j.configuration=file:$L4J"
+#ARGS="-Dbind.address=${MYTESTIP_1} -Dlog4j.configuration=file:$L4J"
+
+if [ "$MODE" == "profile" ]; then
+ JAVA_OPTS="-agentlib:jprofilerti=port=8849  -Xbootclasspath/a:C:\Program Files\jprofiler4\bin\agent.jar"
+JAVA_OPTS="$JAVA_OPTS -Xmx128m"
+JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
+fi
+
+java -cp "$CP" $ARGS $JAVA_OPTS -Djboss.aop.aoppath=$AOP_PATH  org.jboss.cache.FieldUpdateEmulator $@
+#java -cp "$CP" $ARGS $JAVA_OPTS org.jboss.cache.Server $@
+

Copied: core/trunk/src/test-scripts/resources/benchmark-jar.sh (from rev 4263, core/trunk/tests/scripts/benchmark-jar.sh)
===================================================================
--- core/trunk/src/test-scripts/resources/benchmark-jar.sh	                        (rev 0)
+++ core/trunk/src/test-scripts/resources/benchmark-jar.sh	2007-08-15 07:04:13 UTC (rev 4269)
@@ -0,0 +1,76 @@
+#
+# Script to run benchmark
+# Run this under JBossCahe dir
+#
+
+#!/bin/sh
+
+if [ "$1" == "debug" ]; then
+    MODE="debug"
+    shift
+fi 
+
+if [ "$1" == "profile" ]; then
+    MODE="profile"
+    shift
+fi
+    
+CACHE_HOME=`dirname $0`
+CACHE_LIB=$CACHE_HOME/lib
+CACHE_OUTPUT=$CACHE_HOME/output
+
+CLASSPATH=$CACHE_OUTPUT/etc:$CACHE_OUTPUT/classes:$CACHE_OUTPUT/build:$CACHE_OUTPUT/test-classes
+
+for i in ${CACHE_LIB}/*.jar
+do
+CLASSPATH=${CLASSPATH}:${i}
+done
+
+for i in ${CACHE_LIB}/sleepycat/*.jar
+do
+CLASSPATH=${CLASSPATH}:${i}
+done
+
+for i in ${CACHE_OUTPUT}/*.jar
+do
+CLASSPATH=${CLASSPATH}:${i}
+done
+
+AOP_PATH=$CACHE_OUTPUT/etc
+
+LOG4J=$CACHE_OUTPUT/etc/log4j.xml
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false;
+case "`uname`" in
+    CYGWIN*)
+        cygwin=true
+        ;;
+esac
+
+if [ $cygwin = "true" ]; then
+   CP=`cygpath -wp $CLASSPATH`
+   L4J=`cygpath -wp $LOG4J`
+else
+   CP=$CLASSPATH
+   L4J=$LOG4J
+fi
+
+if [ "$MODE" == "debug" ]; then
+JAVA_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=n"
+fi
+
+# Use aopc now instead of load-time mode
+#sh build.sh aopcWithAnnoc
+ARGS="-Dlog4j.configuration=file:$L4J"
+#ARGS="-Dbind.address=${MYTESTIP_1} -Dlog4j.configuration=file:$L4J"
+
+if [ "$MODE" == "profile" ]; then
+ JAVA_OPTS="-agentlib:jprofilerti=port=8849  -Xbootclasspath/a:C:\Program Files\jprofiler4\bin\agent.jar"
+JAVA_OPTS="$JAVA_OPTS -Xmx128m"
+JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
+fi
+
+java -cp "$CP" $ARGS $JAVA_OPTS -Djboss.aop.aoppath=$AOP_PATH  org.jboss.cache.Server $@
+#java -cp "$CP" $ARGS $JAVA_OPTS org.jboss.cache.Server $@
+

Copied: core/trunk/src/test-scripts/resources/benchmark-pojocache.sh (from rev 4263, core/trunk/tests/scripts/benchmark-pojocache.sh)
===================================================================
--- core/trunk/src/test-scripts/resources/benchmark-pojocache.sh	                        (rev 0)
+++ core/trunk/src/test-scripts/resources/benchmark-pojocache.sh	2007-08-15 07:04:13 UTC (rev 4269)
@@ -0,0 +1,76 @@
+#
+# Script to run benchmark
+# Run this under JBossCahe dir
+#
+
+#!/bin/sh
+
+if [ "$1" == "debug" ]; then
+    MODE="debug"
+    shift
+fi 
+
+if [ "$1" == "profile" ]; then
+    MODE="profile"
+    shift
+fi
+    
+CACHE_HOME=`dirname $0`
+CACHE_LIB=$CACHE_HOME/lib
+CACHE_OUTPUT=$CACHE_HOME/output
+
+CLASSPATH=$CACHE_OUTPUT/etc:$CACHE_OUTPUT/classes:$CACHE_OUTPUT/build:$CACHE_OUTPUT/test-classes
+
+for i in ${CACHE_LIB}/*.jar
+do
+CLASSPATH=${CLASSPATH}:${i}
+done
+
+for i in ${CACHE_LIB}/sleepycat/*.jar
+do
+CLASSPATH=${CLASSPATH}:${i}
+done
+
+for i in ${CACHE_OUTPUT}/*.jar
+do
+CLASSPATH=${CLASSPATH}:${i}
+done
+
+AOP_PATH=$CACHE_OUTPUT/etc
+
+LOG4J=$CACHE_OUTPUT/etc/log4j.xml
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false;
+case "`uname`" in
+    CYGWIN*)
+        cygwin=true
+        ;;
+esac
+
+if [ $cygwin = "true" ]; then
+   CP=`cygpath -wp $CLASSPATH`
+   L4J=`cygpath -wp $LOG4J`
+else
+   CP=$CLASSPATH
+   L4J=$LOG4J
+fi
+
+if [ "$MODE" == "debug" ]; then
+JAVA_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=n"
+fi
+
+# Use aopc now instead of load-time mode
+sh build.sh aopcWithAnnoc
+ARGS="-Dlog4j.configuration=file:$L4J"
+#ARGS="-Dbind.address=${MYTESTIP_1} -Dlog4j.configuration=file:$L4J"
+
+if [ "$MODE" == "profile" ]; then
+ JAVA_OPTS="-agentlib:jprofilerti=port=8849  -Xbootclasspath/a:C:\Program Files\jprofiler4\bin\agent.jar"
+JAVA_OPTS="$JAVA_OPTS -Xmx128m"
+JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
+fi
+
+java -cp "$CP" $ARGS $JAVA_OPTS -Djboss.aop.aoppath=$AOP_PATH  org.jboss.cache.Server $@
+#java -cp "$CP" $ARGS $JAVA_OPTS org.jboss.cache.Server $@
+

Copied: core/trunk/src/test-scripts/resources/benchmark.sh (from rev 4263, core/trunk/tests/scripts/benchmark.sh)
===================================================================
--- core/trunk/src/test-scripts/resources/benchmark.sh	                        (rev 0)
+++ core/trunk/src/test-scripts/resources/benchmark.sh	2007-08-15 07:04:13 UTC (rev 4269)
@@ -0,0 +1,77 @@
+#
+# Script to run benchmark
+# Run this under JBossCahe dir
+#
+
+#!/bin/sh
+
+if [ "$1" == "debug" ]; then
+    MODE="debug"
+    shift
+fi 
+
+if [ "$1" == "profile" ]; then
+    MODE="profile"
+    shift
+fi
+    
+CACHE_HOME=`dirname $0`
+CACHE_LIB=$CACHE_HOME/lib
+CACHE_OUTPUT=$CACHE_HOME/output
+
+CLASSPATH=$CACHE_OUTPUT/etc:$CACHE_OUTPUT/classes:$CACHE_OUTPUT/build:$CACHE_OUTPUT/test-classes
+
+for i in ${CACHE_LIB}/*.jar
+do
+CLASSPATH=${CLASSPATH}:${i}
+done
+
+for i in ${CACHE_LIB}/sleepycat/*.jar
+do
+CLASSPATH=${CLASSPATH}:${i}
+done
+
+for i in ${CACHE_OUTPUT}/*.jar
+do
+CLASSPATH=${CLASSPATH}:${i}
+done
+
+
+AOP_PATH=$CACHE_OUTPUT/etc
+
+LOG4J=$CACHE_OUTPUT/etc/log4j.xml
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false;
+case "`uname`" in
+    CYGWIN*)
+        cygwin=true
+        ;;
+esac
+
+if [ $cygwin = "true" ]; then
+   CP=`cygpath -wp $CLASSPATH`
+   L4J=`cygpath -wp $LOG4J`
+else
+   CP=$CLASSPATH
+   L4J=$LOG4J
+fi
+
+if [ "$MODE" == "debug" ]; then
+JAVA_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=n"
+fi
+
+# Use aopc now instead of load-time mode
+#sh build.sh aopcWithAnnoc
+ARGS="-Dlog4j.configuration=file:$L4J"
+#ARGS="-Dbind.address=${MYTESTIP_1} -Dlog4j.configuration=file:$L4J"
+
+if [ "$MODE" == "profile" ]; then
+ JAVA_OPTS="-agentlib:jprofilerti=port=8849  -Xbootclasspath/a:C:\Program Files\jprofiler4\bin\agent.jar"
+JAVA_OPTS="$JAVA_OPTS -Xmx128m"
+JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
+fi
+
+java -cp "$CP" $ARGS $JAVA_OPTS -Djboss.aop.aoppath=$AOP_PATH  org.jboss.cache.Server $@
+#java -cp "$CP" $ARGS $JAVA_OPTS org.jboss.cache.Server $@
+

Copied: core/trunk/src/test-scripts/resources/loopFlatteningTest.sh (from rev 4263, core/trunk/tests/scripts/loopFlatteningTest.sh)
===================================================================
--- core/trunk/src/test-scripts/resources/loopFlatteningTest.sh	                        (rev 0)
+++ core/trunk/src/test-scripts/resources/loopFlatteningTest.sh	2007-08-15 07:04:13 UTC (rev 4269)
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+CP=etc/:output/test-classes:output/classes
+for i in lib/*.jar; do
+CP=$CP:$i
+done
+
+java -cp $CP org.jboss.cache.manualtests.LoopFlatteningTest ${*}

Copied: core/trunk/src/test-scripts/resources/profile.sh (from rev 4263, core/trunk/tests/scripts/profile.sh)
===================================================================
--- core/trunk/src/test-scripts/resources/profile.sh	                        (rev 0)
+++ core/trunk/src/test-scripts/resources/profile.sh	2007-08-15 07:04:13 UTC (rev 4269)
@@ -0,0 +1,59 @@
+#
+# Test scripts to run StudentMetrics under perf/aop
+# Run this under JBossCahe dir
+#
+
+#!/bin/sh
+
+#CACHE_HOME=/home/head/cvsroot/jboss-head/cache/output/tmp
+CACHE_HOME=`dirname $0`
+CACHE_LIB=$CACHE_HOME/lib
+CACHE_OUTPUT=$CACHE_HOME/output
+
+CLASSPATH=$CACHE_OUTPUT/etc:$CACHE_OUTPUT/classes:$CACHE_OUTPUT/build:$CACHE_OUTPUT/test-classes
+
+for i in ${CACHE_LIB}/*.jar
+do
+CLASSPATH=${CLASSPATH}:${i}
+done
+
+for i in ${CACHE_LIB}/sleepycat/*.jar
+do
+CLASSPATH=${CLASSPATH}:${i}
+done
+
+for i in ${CACHE_OUTPUT}/*.jar
+do
+CLASSPATH=${CLASSPATH}:${i}
+done
+
+AOP_PATH=$CACHE_OUTPUT/etc/META-INF
+
+LOG4J=$CACHE_OUTPUT/etc/log4j.xml
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false;
+case "`uname`" in
+    CYGWIN*)
+        cygwin=true
+        ;;
+esac
+
+if [ $cygwin = "true" ]; then
+   CP=`cygpath -wp $CLASSPATH`
+   L4J=`cygpath -wp $LOG4J`
+else
+   CP=$CLASSPATH
+   L4J=$LOG4J
+fi
+
+#JAVA_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=n"
+
+# Use aopc now instead of load-time mode
+sh build.sh aopc
+ARGS="-Dlog4j.configuration=file:$L4J"
+
+# JAVA_OPTS="-agentlib:jprofilerti=port=8849  -Xbootclasspath/a:C:\Program Files\jprofiler4\bin\agent.jar"
+
+java -cp "$CP" $ARGS $JAVA_OPTS -Djboss.aop.aoppath=$AOP_PATH  org.jboss.cache.aop.StudentMetrics
+

Copied: core/trunk/src/test-scripts/resources/readme.txt (from rev 4263, core/trunk/tests/scripts/readme.txt)
===================================================================
--- core/trunk/src/test-scripts/resources/readme.txt	                        (rev 0)
+++ core/trunk/src/test-scripts/resources/readme.txt	2007-08-15 07:04:13 UTC (rev 4269)
@@ -0,0 +1,32 @@
+Here are the steps to run the perf testing for JBossCache.
+
+1. check out JBossCache head and do a build
+2. Copy benchmark.sh (benchmakr-pojocache.sh for PojoCache) and 
+bench.txt under your JBossCache home dir
+3. If you are running PojoCache, remember to run aopcWithAnnoc for jdk1.4
+or aopc50 for jdk5.0.
+4. edit bench.txt appropriately.
+ * Note that this is a very simple load test. So let's say if 
+you want to try out a 3 node cluster, you will need to execute 
+the same script on all three nodes. You can also specify the 
+"-receiver" option to be in receiving mode only as well.
+5. Copy bench.xml to output directory (or anywhere but you need to
+edit your bench.txt entry accordingly).
+5. Go to each node, do "sh benchmark.sh -config bench.txt" to start the script.
+5a. If you are running JDK5.0 and want to test out aop-jdk50.jar lib as well, use
+"sh benchmark-50.sh -config bench.txt"
+
+Note:
+a) Just as a guideline, when the object list size is 100, the
+total payload is about 7038 bytes (from JGroups UDP layer); 200 is
+13570, and 400 is 25400, respectively.
+b) The bench.xml only runs with JGroups 2.3!
+c) Be sure to turn off log4j.xml logging!
+d) Now you can test PojoCache as well. Remember to use benchmark-pojocache.sh.
+e) Or uou can want to comment out "sh build.sh aopcWithAnnoc" in 
+benchmark-pojocache.sh. It only needs to build once for PojoCache.
+f) You may need to add bind_address marco in benchmark.sh. Or 
+uncomment the JAVA_OPTS line.
+g) You can also use the build target "build.sh perfTestJar" to create a jar
+tester and then use benchmark-jar.sh to run the perf test. You can use this
+to run the perf test in other JBossCache releases.

Deleted: core/trunk/tests/scripts/bench.txt
===================================================================
--- core/trunk/tests/scripts/bench.txt	2007-08-15 07:02:41 UTC (rev 4268)
+++ core/trunk/tests/scripts/bench.txt	2007-08-15 07:04:13 UTC (rev 4269)
@@ -1,27 +0,0 @@
-# Number of loops to run
-loops=100
-# Number of clients on each node
-threads=4
-# Indicate whether the sleep interval is random or not
-random_sleep_interval=false
-# Sleep interval between each loop
-sleep_interval_millis=0
-# The top object is a Student with Courses. This is the Courses size.
-object_list_size=100
-# This specify who are in this clustering group. It won't start untill
-# everyone is up. You can specify bogus IP now since we only count 
-# the number now.
-members=172.16.129.57, 172.16.130.57, 172.16.131.57
-# Whether to use transaction or not
-transaction=true
-# location of cache xml
-cache_config=output/bench.xml
-#
-# PojoCache specific
-#
-
-# Running PojoCache test
-run_PojoCache=false
-# ratio of Pojo attach vs. field update. 1 means all pojo attachment (expensive)
-# 5 means it will update every 5 times (e.g., 4 field and 1 pojo update)
-update_pojo_interval=1

Deleted: core/trunk/tests/scripts/bench.xml
===================================================================
--- core/trunk/tests/scripts/bench.xml	2007-08-15 07:02:41 UTC (rev 4268)
+++ core/trunk/tests/scripts/bench.xml	2007-08-15 07:04:13 UTC (rev 4269)
@@ -1,144 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!-- ===================================================================== -->
-<!--                                                                       -->
-<!--  Customized TreeCache Service Configuration for Tomcat 5 Clustering   -->
-<!--                                                                       -->
-<!-- ===================================================================== -->
-
-<server>
-
-   <!-- ==================================================================== -->
-   <!-- Defines TreeCache configuration                                      -->
-   <!-- ==================================================================== -->
-
-   <mbean code="org.jboss.cache.CacheImpl"
-          name="jboss.cache:service=TomcatClusteringCache">
-
-      <depends>jboss:service=Naming</depends>
-      <depends>jboss:service=TransactionManager</depends>
-
-      <!-- Configure the TransactionManager -->
-      <attribute name="TransactionManagerLookupClass">org.jboss.cache.transaction.GenericTransactionManagerLookup</attribute>
-
-      <!--
-          Isolation level : SERIALIZABLE
-                            REPEATABLE_READ (default)
-                            READ_COMMITTED
-                            READ_UNCOMMITTED
-                            NONE
-      -->
-      <attribute name="IsolationLevel">REPEATABLE_READ</attribute>
-
-      <!--
-           Valid modes are LOCAL, REPL_ASYNC and REPL_SYNC
-      -->
-      <attribute name="CacheMode">REPL_SYNC</attribute>
-
-      <!-- Name of cluster. Needs to be the same for all clusters, in order
-           to find each other
-      -->
-      <attribute name="ClusterName">Tomcat-Cluster</attribute>
-
-      <!-- JGroups protocol stack properties. Can also be a URL,
-           e.g. file:/home/bela/default.xml
-         <attribute name="ClusterProperties"></attribute>
-      -->
-
-      <attribute name="ClusterConfig">
-         <!-- fc-fast-minimalthreads.xml with some FC tuning
-                discard_incompatible_packets="true"
-                tos="16"
-         -->
-         <config>
-            <UDP mcast_addr="230.1.2.3" mcast_port="45577"
-                 ucast_recv_buf_size="20000000"
-                 ucast_send_buf_size="640000"
-                 mcast_recv_buf_size="25000000"
-                 mcast_send_buf_size="640000"
-                 loopback="false"
-                 max_bundle_size="64000"
-                 max_bundle_timeout="30"
-                 use_incoming_packet_handler="true"
-                 use_outgoing_packet_handler="false"
-                 ip_ttl="2"
-                 down_thread="false" up_thread="false"
-                 enable_bundling="true"/>
-            <PING timeout="2000"
-                  down_thread="false" up_thread="false" num_initial_members="3"/>
-            <!-- MERGE2 max_interval="100000"
-         down_thread="false" up_thread="false" min_interval="20000"/ -->
-            <FD_SOCK down_thread="false" up_thread="false"/>
-            <!--VERIFY_SUSPECT timeout="1500" down_thread="false"/-->
-            <pbcast.NAKACK max_xmit_size="60000"
-                           use_mcast_xmit="false" gc_lag="2"
-                           retransmit_timeout="100,200,300,600,1200,2400,4800"
-                           down_thread="false" up_thread="false"
-                           discard_delivered_msgs="true"/>
-            <UNICAST timeout="300,600,1200,2400,3600"
-                     down_thread="false" up_thread="false"/>
-            <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
-                           down_thread="false" up_thread="false"
-                           max_bytes="400000"/>
-            <pbcast.GMS print_local_addr="true" join_timeout="3000"
-                        down_thread="false" up_thread="false"
-                        join_retry_timeout="2000" shun="true"/>
-            <!-- Comment it out when we use repl_sync. We don't need fc when it is sync mode. -->
-            <!--FC max_credits="2000000" down_thread="false" up_thread="false"
-           min_threshold="0.20" max_block_time="5000"/-->
-            <FRAG2 frag_size="60000" down_thread="false" up_thread="false"/>
-            <!--Turn COMPRESS on when running PojoCache-->
-            <!--COMPRESS min_size="4000" compression_level="1"/-->
-            <pbcast.STATE_TRANSFER up_thread="false" down_thread="false"/>
-         </config>
-
-         <!-- tcp-fast.xml | You have to edit bind_addr correctly. -->
-         <!--
-           <config>
-             <TCP bind_addr="192.168.160.101"
-                  recv_buf_size="20000000"
-                  send_buf_size="640000"
-                  loopback="false"
-                  discard_incompatible_packets="true"
-                  max_bundle_size="64000"
-                  max_bundle_timeout="30"
-                  use_incoming_packet_handler="true"
-                  use_outgoing_packet_handler="false"
-                  down_thread="false" up_thread="false"
-                  enable_bundling="true"
-                  start_port="7800"
-                  use_send_queues="false"
-                  sock_conn_timeout="300" skip_suspected_members="true"/>
-             <MPING timeout="2000"
-                    num_initial_members="2"
-                    mcast_addr="${jboss.partition.udpGroup:230.1.2.7}"
-                    bind_addr="192.168.160.101"
-                    down_thread="false" up_thread="false"/>
-             <FD_SOCK down_thread="false" up_thread="false"/>
-             <pbcast.NAKACK max_xmit_size="60000"
-                            use_mcast_xmit="false" gc_lag="10"
-                            retransmit_timeout="100,200,300,600,1200,2400,4800"
-                            down_thread="false" up_thread="false"
-                            discard_delivered_msgs="true"/>
-             <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
-                            down_thread="false" up_thread="false"
-                            max_bytes="400000"/>
-             <VIEW_SYNC avg_send_interval="60000" down_thread="false" up_thread="false" />
-             <pbcast.GMS print_local_addr="true" join_timeout="3000"
-                         down_thread="false" up_thread="false"
-                         join_retry_timeout="2000" shun="true"/>
-             <FC max_credits="2000000" down_thread="false" up_thread="false"
-                 min_threshold="0.10" max_block_time="1000"/>
-             <pbcast.STATE_TRANSFER up_thread="false" down_thread="false"/>
-           </config>
-         -->
-      </attribute>
-
-      <!-- Max number of milliseconds to wait for a lock acquisition -->
-      <attribute name="LockAcquisitionTimeout">14000</attribute>
-      <attribute name="SyncReplTimeout">15000</attribute>
-
-      <attribute name="UseRegionBasedMarshalling">false</attribute>
-   </mbean>
-
-</server>

Deleted: core/trunk/tests/scripts/benchmark-50.sh
===================================================================
--- core/trunk/tests/scripts/benchmark-50.sh	2007-08-15 07:02:41 UTC (rev 4268)
+++ core/trunk/tests/scripts/benchmark-50.sh	2007-08-15 07:04:13 UTC (rev 4269)
@@ -1,77 +0,0 @@
-#
-# Script to run benchmark
-# Run this under JBossCahe dir
-#
-
-#!/bin/sh
-
-if [ "$1" == "debug" ]; then
-    MODE="debug"
-    shift
-fi 
-
-if [ "$1" == "profile" ]; then
-    MODE="profile"
-    shift
-fi
-    
-CACHE_HOME=`dirname $0`
-CACHE_LIB=$CACHE_HOME/lib
-CACHE_LIB_50=$CACHE_HOME/lib-50
-CACHE_OUTPUT=$CACHE_HOME/output
-
-CLASSPATH=$CACHE_OUTPUT/etc:$CACHE_OUTPUT/classes:$CACHE_OUTPUT/build:$CACHE_OUTPUT/test-classes
-
-for i in ${CACHE_LIB}/*.jar
-do
-CLASSPATH=${CLASSPATH}:${i}
-done
-
-for i in ${CACHE_LIB}/sleepycat/*.jar
-do
-CLASSPATH=${CLASSPATH}:${i}
-done
-
-for i in ${CACHE_LIB_50}/*.jar
-do
-CLASSPATH=${CLASSPATH}:${i}
-done
-
-AOP_PATH=$CACHE_OUTPUT/etc
-
-LOG4J=$CACHE_OUTPUT/etc/log4j.xml
-
-# OS specific support (must be 'true' or 'false').
-cygwin=false;
-case "`uname`" in
-    CYGWIN*)
-        cygwin=true
-        ;;
-esac
-
-if [ $cygwin = "true" ]; then
-   CP=`cygpath -wp $CLASSPATH`
-   L4J=`cygpath -wp $LOG4J`
-else
-   CP=$CLASSPATH
-   L4J=$LOG4J
-fi
-
-if [ "$MODE" == "debug" ]; then
-JAVA_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=n"
-fi
-
-# Use aopc now instead of load-time mode
-#sh build.sh aopc50
-ARGS="-Dlog4j.configuration=file:$L4J"
-#ARGS="-Dbind.address=${MYTESTIP_1} -Dlog4j.configuration=file:$L4J"
-
-if [ "$MODE" == "profile" ]; then
- JAVA_OPTS="-agentlib:jprofilerti=port=8849  -Xbootclasspath/a:C:\Program Files\jprofiler4\bin\agent.jar"
-JAVA_OPTS="$JAVA_OPTS -Xmx128m"
-JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
-fi
-
-java -cp "$CP" $ARGS $JAVA_OPTS -Djboss.aop.aoppath=$AOP_PATH  org.jboss.cache.Server $@
-#java -cp "$CP" $ARGS $JAVA_OPTS org.jboss.cache.Server $@
-

Deleted: core/trunk/tests/scripts/benchmark-fieldEmulator.sh
===================================================================
--- core/trunk/tests/scripts/benchmark-fieldEmulator.sh	2007-08-15 07:02:41 UTC (rev 4268)
+++ core/trunk/tests/scripts/benchmark-fieldEmulator.sh	2007-08-15 07:04:13 UTC (rev 4269)
@@ -1,77 +0,0 @@
-#
-# Script to run benchmark
-# Run this under JBossCahe dir
-#
-
-#!/bin/sh
-
-if [ "$1" == "debug" ]; then
-    MODE="debug"
-    shift
-fi 
-
-if [ "$1" == "profile" ]; then
-    MODE="profile"
-    shift
-fi
-    
-CACHE_HOME=`dirname $0`
-CACHE_LIB=$CACHE_HOME/lib
-CACHE_OUTPUT=$CACHE_HOME/output
-
-CLASSPATH=$CACHE_OUTPUT/etc:$CACHE_OUTPUT/classes:$CACHE_OUTPUT/build:$CACHE_OUTPUT/test-classes
-
-for i in ${CACHE_LIB}/*.jar
-do
-CLASSPATH=${CLASSPATH}:${i}
-done
-
-for i in ${CACHE_LIB}/sleepycat/*.jar
-do
-CLASSPATH=${CLASSPATH}:${i}
-done
-
-for i in ${CACHE_OUTPUT}/*.jar
-do
-CLASSPATH=${CLASSPATH}:${i}
-done
-
-
-AOP_PATH=$CACHE_OUTPUT/etc
-
-LOG4J=$CACHE_OUTPUT/etc/log4j.xml
-
-# OS specific support (must be 'true' or 'false').
-cygwin=false;
-case "`uname`" in
-    CYGWIN*)
-        cygwin=true
-        ;;
-esac
-
-if [ $cygwin = "true" ]; then
-   CP=`cygpath -wp $CLASSPATH`
-   L4J=`cygpath -wp $LOG4J`
-else
-   CP=$CLASSPATH
-   L4J=$LOG4J
-fi
-
-if [ "$MODE" == "debug" ]; then
-JAVA_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=n"
-fi
-
-# Use aopc now instead of load-time mode
-#sh build.sh aopcWithAnnoc
-ARGS="-Dlog4j.configuration=file:$L4J"
-#ARGS="-Dbind.address=${MYTESTIP_1} -Dlog4j.configuration=file:$L4J"
-
-if [ "$MODE" == "profile" ]; then
- JAVA_OPTS="-agentlib:jprofilerti=port=8849  -Xbootclasspath/a:C:\Program Files\jprofiler4\bin\agent.jar"
-JAVA_OPTS="$JAVA_OPTS -Xmx128m"
-JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
-fi
-
-java -cp "$CP" $ARGS $JAVA_OPTS -Djboss.aop.aoppath=$AOP_PATH  org.jboss.cache.FieldUpdateEmulator $@
-#java -cp "$CP" $ARGS $JAVA_OPTS org.jboss.cache.Server $@
-

Deleted: core/trunk/tests/scripts/benchmark-jar.sh
===================================================================
--- core/trunk/tests/scripts/benchmark-jar.sh	2007-08-15 07:02:41 UTC (rev 4268)
+++ core/trunk/tests/scripts/benchmark-jar.sh	2007-08-15 07:04:13 UTC (rev 4269)
@@ -1,76 +0,0 @@
-#
-# Script to run benchmark
-# Run this under JBossCahe dir
-#
-
-#!/bin/sh
-
-if [ "$1" == "debug" ]; then
-    MODE="debug"
-    shift
-fi 
-
-if [ "$1" == "profile" ]; then
-    MODE="profile"
-    shift
-fi
-    
-CACHE_HOME=`dirname $0`
-CACHE_LIB=$CACHE_HOME/lib
-CACHE_OUTPUT=$CACHE_HOME/output
-
-CLASSPATH=$CACHE_OUTPUT/etc:$CACHE_OUTPUT/classes:$CACHE_OUTPUT/build:$CACHE_OUTPUT/test-classes
-
-for i in ${CACHE_LIB}/*.jar
-do
-CLASSPATH=${CLASSPATH}:${i}
-done
-
-for i in ${CACHE_LIB}/sleepycat/*.jar
-do
-CLASSPATH=${CLASSPATH}:${i}
-done
-
-for i in ${CACHE_OUTPUT}/*.jar
-do
-CLASSPATH=${CLASSPATH}:${i}
-done
-
-AOP_PATH=$CACHE_OUTPUT/etc
-
-LOG4J=$CACHE_OUTPUT/etc/log4j.xml
-
-# OS specific support (must be 'true' or 'false').
-cygwin=false;
-case "`uname`" in
-    CYGWIN*)
-        cygwin=true
-        ;;
-esac
-
-if [ $cygwin = "true" ]; then
-   CP=`cygpath -wp $CLASSPATH`
-   L4J=`cygpath -wp $LOG4J`
-else
-   CP=$CLASSPATH
-   L4J=$LOG4J
-fi
-
-if [ "$MODE" == "debug" ]; then
-JAVA_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=n"
-fi
-
-# Use aopc now instead of load-time mode
-#sh build.sh aopcWithAnnoc
-ARGS="-Dlog4j.configuration=file:$L4J"
-#ARGS="-Dbind.address=${MYTESTIP_1} -Dlog4j.configuration=file:$L4J"
-
-if [ "$MODE" == "profile" ]; then
- JAVA_OPTS="-agentlib:jprofilerti=port=8849  -Xbootclasspath/a:C:\Program Files\jprofiler4\bin\agent.jar"
-JAVA_OPTS="$JAVA_OPTS -Xmx128m"
-JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
-fi
-
-java -cp "$CP" $ARGS $JAVA_OPTS -Djboss.aop.aoppath=$AOP_PATH  org.jboss.cache.Server $@
-#java -cp "$CP" $ARGS $JAVA_OPTS org.jboss.cache.Server $@
-

Deleted: core/trunk/tests/scripts/benchmark-pojocache.sh
===================================================================
--- core/trunk/tests/scripts/benchmark-pojocache.sh	2007-08-15 07:02:41 UTC (rev 4268)
+++ core/trunk/tests/scripts/benchmark-pojocache.sh	2007-08-15 07:04:13 UTC (rev 4269)
@@ -1,76 +0,0 @@
-#
-# Script to run benchmark
-# Run this under JBossCahe dir
-#
-
-#!/bin/sh
-
-if [ "$1" == "debug" ]; then
-    MODE="debug"
-    shift
-fi 
-
-if [ "$1" == "profile" ]; then
-    MODE="profile"
-    shift
-fi
-    
-CACHE_HOME=`dirname $0`
-CACHE_LIB=$CACHE_HOME/lib
-CACHE_OUTPUT=$CACHE_HOME/output
-
-CLASSPATH=$CACHE_OUTPUT/etc:$CACHE_OUTPUT/classes:$CACHE_OUTPUT/build:$CACHE_OUTPUT/test-classes
-
-for i in ${CACHE_LIB}/*.jar
-do
-CLASSPATH=${CLASSPATH}:${i}
-done
-
-for i in ${CACHE_LIB}/sleepycat/*.jar
-do
-CLASSPATH=${CLASSPATH}:${i}
-done
-
-for i in ${CACHE_OUTPUT}/*.jar
-do
-CLASSPATH=${CLASSPATH}:${i}
-done
-
-AOP_PATH=$CACHE_OUTPUT/etc
-
-LOG4J=$CACHE_OUTPUT/etc/log4j.xml
-
-# OS specific support (must be 'true' or 'false').
-cygwin=false;
-case "`uname`" in
-    CYGWIN*)
-        cygwin=true
-        ;;
-esac
-
-if [ $cygwin = "true" ]; then
-   CP=`cygpath -wp $CLASSPATH`
-   L4J=`cygpath -wp $LOG4J`
-else
-   CP=$CLASSPATH
-   L4J=$LOG4J
-fi
-
-if [ "$MODE" == "debug" ]; then
-JAVA_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=n"
-fi
-
-# Use aopc now instead of load-time mode
-sh build.sh aopcWithAnnoc
-ARGS="-Dlog4j.configuration=file:$L4J"
-#ARGS="-Dbind.address=${MYTESTIP_1} -Dlog4j.configuration=file:$L4J"
-
-if [ "$MODE" == "profile" ]; then
- JAVA_OPTS="-agentlib:jprofilerti=port=8849  -Xbootclasspath/a:C:\Program Files\jprofiler4\bin\agent.jar"
-JAVA_OPTS="$JAVA_OPTS -Xmx128m"
-JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
-fi
-
-java -cp "$CP" $ARGS $JAVA_OPTS -Djboss.aop.aoppath=$AOP_PATH  org.jboss.cache.Server $@
-#java -cp "$CP" $ARGS $JAVA_OPTS org.jboss.cache.Server $@
-

Deleted: core/trunk/tests/scripts/benchmark.sh
===================================================================
--- core/trunk/tests/scripts/benchmark.sh	2007-08-15 07:02:41 UTC (rev 4268)
+++ core/trunk/tests/scripts/benchmark.sh	2007-08-15 07:04:13 UTC (rev 4269)
@@ -1,77 +0,0 @@
-#
-# Script to run benchmark
-# Run this under JBossCahe dir
-#
-
-#!/bin/sh
-
-if [ "$1" == "debug" ]; then
-    MODE="debug"
-    shift
-fi 
-
-if [ "$1" == "profile" ]; then
-    MODE="profile"
-    shift
-fi
-    
-CACHE_HOME=`dirname $0`
-CACHE_LIB=$CACHE_HOME/lib
-CACHE_OUTPUT=$CACHE_HOME/output
-
-CLASSPATH=$CACHE_OUTPUT/etc:$CACHE_OUTPUT/classes:$CACHE_OUTPUT/build:$CACHE_OUTPUT/test-classes
-
-for i in ${CACHE_LIB}/*.jar
-do
-CLASSPATH=${CLASSPATH}:${i}
-done
-
-for i in ${CACHE_LIB}/sleepycat/*.jar
-do
-CLASSPATH=${CLASSPATH}:${i}
-done
-
-for i in ${CACHE_OUTPUT}/*.jar
-do
-CLASSPATH=${CLASSPATH}:${i}
-done
-
-
-AOP_PATH=$CACHE_OUTPUT/etc
-
-LOG4J=$CACHE_OUTPUT/etc/log4j.xml
-
-# OS specific support (must be 'true' or 'false').
-cygwin=false;
-case "`uname`" in
-    CYGWIN*)
-        cygwin=true
-        ;;
-esac
-
-if [ $cygwin = "true" ]; then
-   CP=`cygpath -wp $CLASSPATH`
-   L4J=`cygpath -wp $LOG4J`
-else
-   CP=$CLASSPATH
-   L4J=$LOG4J
-fi
-
-if [ "$MODE" == "debug" ]; then
-JAVA_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=n"
-fi
-
-# Use aopc now instead of load-time mode
-#sh build.sh aopcWithAnnoc
-ARGS="-Dlog4j.configuration=file:$L4J"
-#ARGS="-Dbind.address=${MYTESTIP_1} -Dlog4j.configuration=file:$L4J"
-
-if [ "$MODE" == "profile" ]; then
- JAVA_OPTS="-agentlib:jprofilerti=port=8849  -Xbootclasspath/a:C:\Program Files\jprofiler4\bin\agent.jar"
-JAVA_OPTS="$JAVA_OPTS -Xmx128m"
-JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
-fi
-
-java -cp "$CP" $ARGS $JAVA_OPTS -Djboss.aop.aoppath=$AOP_PATH  org.jboss.cache.Server $@
-#java -cp "$CP" $ARGS $JAVA_OPTS org.jboss.cache.Server $@
-

Deleted: core/trunk/tests/scripts/loopFlatteningTest.sh
===================================================================
--- core/trunk/tests/scripts/loopFlatteningTest.sh	2007-08-15 07:02:41 UTC (rev 4268)
+++ core/trunk/tests/scripts/loopFlatteningTest.sh	2007-08-15 07:04:13 UTC (rev 4269)
@@ -1,8 +0,0 @@
-#!/bin/bash
-
-CP=etc/:output/test-classes:output/classes
-for i in lib/*.jar; do
-CP=$CP:$i
-done
-
-java -cp $CP org.jboss.cache.manualtests.LoopFlatteningTest ${*}

Deleted: core/trunk/tests/scripts/profile.sh
===================================================================
--- core/trunk/tests/scripts/profile.sh	2007-08-15 07:02:41 UTC (rev 4268)
+++ core/trunk/tests/scripts/profile.sh	2007-08-15 07:04:13 UTC (rev 4269)
@@ -1,59 +0,0 @@
-#
-# Test scripts to run StudentMetrics under perf/aop
-# Run this under JBossCahe dir
-#
-
-#!/bin/sh
-
-#CACHE_HOME=/home/head/cvsroot/jboss-head/cache/output/tmp
-CACHE_HOME=`dirname $0`
-CACHE_LIB=$CACHE_HOME/lib
-CACHE_OUTPUT=$CACHE_HOME/output
-
-CLASSPATH=$CACHE_OUTPUT/etc:$CACHE_OUTPUT/classes:$CACHE_OUTPUT/build:$CACHE_OUTPUT/test-classes
-
-for i in ${CACHE_LIB}/*.jar
-do
-CLASSPATH=${CLASSPATH}:${i}
-done
-
-for i in ${CACHE_LIB}/sleepycat/*.jar
-do
-CLASSPATH=${CLASSPATH}:${i}
-done
-
-for i in ${CACHE_OUTPUT}/*.jar
-do
-CLASSPATH=${CLASSPATH}:${i}
-done
-
-AOP_PATH=$CACHE_OUTPUT/etc/META-INF
-
-LOG4J=$CACHE_OUTPUT/etc/log4j.xml
-
-# OS specific support (must be 'true' or 'false').
-cygwin=false;
-case "`uname`" in
-    CYGWIN*)
-        cygwin=true
-        ;;
-esac
-
-if [ $cygwin = "true" ]; then
-   CP=`cygpath -wp $CLASSPATH`
-   L4J=`cygpath -wp $LOG4J`
-else
-   CP=$CLASSPATH
-   L4J=$LOG4J
-fi
-
-#JAVA_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=n"
-
-# Use aopc now instead of load-time mode
-sh build.sh aopc
-ARGS="-Dlog4j.configuration=file:$L4J"
-
-# JAVA_OPTS="-agentlib:jprofilerti=port=8849  -Xbootclasspath/a:C:\Program Files\jprofiler4\bin\agent.jar"
-
-java -cp "$CP" $ARGS $JAVA_OPTS -Djboss.aop.aoppath=$AOP_PATH  org.jboss.cache.aop.StudentMetrics
-

Deleted: core/trunk/tests/scripts/readme.txt
===================================================================
--- core/trunk/tests/scripts/readme.txt	2007-08-15 07:02:41 UTC (rev 4268)
+++ core/trunk/tests/scripts/readme.txt	2007-08-15 07:04:13 UTC (rev 4269)
@@ -1,32 +0,0 @@
-Here are the steps to run the perf testing for JBossCache.
-
-1. check out JBossCache head and do a build
-2. Copy benchmark.sh (benchmakr-pojocache.sh for PojoCache) and 
-bench.txt under your JBossCache home dir
-3. If you are running PojoCache, remember to run aopcWithAnnoc for jdk1.4
-or aopc50 for jdk5.0.
-4. edit bench.txt appropriately.
- * Note that this is a very simple load test. So let's say if 
-you want to try out a 3 node cluster, you will need to execute 
-the same script on all three nodes. You can also specify the 
-"-receiver" option to be in receiving mode only as well.
-5. Copy bench.xml to output directory (or anywhere but you need to
-edit your bench.txt entry accordingly).
-5. Go to each node, do "sh benchmark.sh -config bench.txt" to start the script.
-5a. If you are running JDK5.0 and want to test out aop-jdk50.jar lib as well, use
-"sh benchmark-50.sh -config bench.txt"
-
-Note:
-a) Just as a guideline, when the object list size is 100, the
-total payload is about 7038 bytes (from JGroups UDP layer); 200 is
-13570, and 400 is 25400, respectively.
-b) The bench.xml only runs with JGroups 2.3!
-c) Be sure to turn off log4j.xml logging!
-d) Now you can test PojoCache as well. Remember to use benchmark-pojocache.sh.
-e) Or uou can want to comment out "sh build.sh aopcWithAnnoc" in 
-benchmark-pojocache.sh. It only needs to build once for PojoCache.
-f) You may need to add bind_address marco in benchmark.sh. Or 
-uncomment the JAVA_OPTS line.
-g) You can also use the build target "build.sh perfTestJar" to create a jar
-tester and then use benchmark-jar.sh to run the perf test. You can use this
-to run the perf test in other JBossCache releases.




More information about the jbosscache-commits mailing list