JBoss Cache SVN: r4273 - core/trunk.
by jbosscache-commits@lists.jboss.org
Author: manik.surtani(a)jboss.com
Date: 2007-08-15 03:17:21 -0400 (Wed, 15 Aug 2007)
New Revision: 4273
Removed:
core/trunk/tests/
Log:
Removed defunct tests directory
17 years, 4 months
JBoss Cache SVN: r4272 - in core/trunk: tests/functional and 1 other directory.
by jbosscache-commits@lists.jboss.org
Author: manik.surtani(a)jboss.com
Date: 2007-08-15 03:13:48 -0400 (Wed, 15 Aug 2007)
New Revision: 4272
Added:
core/trunk/src/test/java/org/
Removed:
core/trunk/tests/functional/org/
Log:
moved core unit tests
Copied: core/trunk/src/test/java/org (from rev 4263, core/trunk/tests/functional/org)
17 years, 4 months
JBoss Cache SVN: r4271 - core/trunk/src/test/java.
by jbosscache-commits@lists.jboss.org
Author: manik.surtani(a)jboss.com
Date: 2007-08-15 03:06:27 -0400 (Wed, 15 Aug 2007)
New Revision: 4271
Removed:
core/trunk/src/test/java/org/
Log:
removed dummy test
17 years, 4 months
JBoss Cache SVN: r4270 - in core/trunk: tests/stress and 1 other directory.
by jbosscache-commits@lists.jboss.org
Author: manik.surtani(a)jboss.com
Date: 2007-08-15 03:05:01 -0400 (Wed, 15 Aug 2007)
New Revision: 4270
Added:
core/trunk/src/test-stress/java/org/
Removed:
core/trunk/tests/stress/org/
Log:
moved stress tests
Copied: core/trunk/src/test-stress/java/org (from rev 4263, core/trunk/tests/stress/org)
17 years, 4 months
JBoss Cache SVN: r4269 - in core/trunk: tests/scripts and 1 other directory.
by jbosscache-commits@lists.jboss.org
Author: manik.surtani(a)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.
17 years, 4 months
JBoss Cache SVN: r4268 - in core/trunk: tests/perf and 1 other directory.
by jbosscache-commits@lists.jboss.org
Author: manik.surtani(a)jboss.com
Date: 2007-08-15 03:02:41 -0400 (Wed, 15 Aug 2007)
New Revision: 4268
Added:
core/trunk/src/test-perf/java/org/
Removed:
core/trunk/tests/perf/org/
Log:
moved performance tests
Copied: core/trunk/src/test-perf/java/org (from rev 4263, core/trunk/tests/perf/org)
17 years, 4 months
JBoss Cache SVN: r4267 - in core/trunk: tests/compat and 1 other directory.
by jbosscache-commits@lists.jboss.org
Author: manik.surtani(a)jboss.com
Date: 2007-08-15 02:58:16 -0400 (Wed, 15 Aug 2007)
New Revision: 4267
Added:
core/trunk/src/test-compat/java/org/
Removed:
core/trunk/tests/compat/org/
Log:
moved tests
Copied: core/trunk/src/test-compat/java/org (from rev 4263, core/trunk/tests/compat/org)
17 years, 4 months
JBoss Cache SVN: r4266 - in core/trunk: migration and 1 other directory.
by jbosscache-commits@lists.jboss.org
Author: manik.surtani(a)jboss.com
Date: 2007-08-15 02:56:10 -0400 (Wed, 15 Aug 2007)
New Revision: 4266
Removed:
core/trunk/.classpath
core/trunk/.cvsignore
core/trunk/.project
core/trunk/.settings/
core/trunk/migration/.cvsignore
Log:
Removed IDE-specific settings
Deleted: core/trunk/.classpath
===================================================================
--- core/trunk/.classpath 2007-08-15 06:48:10 UTC (rev 4265)
+++ core/trunk/.classpath 2007-08-15 06:56:10 UTC (rev 4266)
@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="src" path="etc"/>
- <classpathentry kind="src" path="tests/functional"/>
- <classpathentry kind="src" path="tests/perf"/>
- <classpathentry kind="src" path="tests/stress"/>
- <classpathentry kind="src" path="tests/interop"/>
- <classpathentry kind="lib" path="ant-dist/lib/ant.jar"/>
- <classpathentry kind="lib" path="ant-dist/lib/ant-junit.jar"/>
- <classpathentry kind="lib" path="ant-dist/lib/ant-launcher.jar"/>
- <classpathentry kind="lib" path="ant-dist/lib/ant-nodeps.jar"/>
- <classpathentry kind="lib" path="ant-dist/lib/ant-trax.jar"/>
- <classpathentry kind="lib" path="ant-dist/lib/ant-xslp.jar"/>
- <classpathentry kind="lib" path="ant-dist/lib/bsf.jar"/>
- <classpathentry kind="lib" path="ant-dist/lib/junit.jar"/>
- <classpathentry kind="lib" path="ant-dist/lib/pretty.jar"/>
- <classpathentry kind="lib" path="ant-dist/lib/resolver.jar"/>
- <classpathentry kind="lib" path="lib/bsh-2.0b4.jar"/>
- <classpathentry kind="lib" path="lib/commons-logging-1.1.jar"/>
- <classpathentry kind="lib" path="lib/derby.jar"/>
- <classpathentry kind="lib" path="lib/javassist.jar"/>
- <classpathentry kind="lib" path="lib/jboss-aop-jdk50.jar"/>
- <classpathentry kind="lib" path="lib/jboss-common-core.jar"/>
- <classpathentry kind="lib" path="lib/jboss-j2ee.jar"/>
- <classpathentry kind="lib" path="lib/jdbm-1.0.jar"/>
- <classpathentry kind="lib" path="lib/jgroups-all.jar"/>
- <classpathentry kind="lib" path="lib/junit.jar"/>
- <classpathentry kind="lib" path="lib/berkeleydb/je.jar"/>
- <classpathentry kind="lib" path="lib/trove.jar"/>
- <classpathentry kind="lib" path="lib/retro/jboss-backport-concurrent.jar"/>
- <classpathentry kind="lib" path="lib/log4j-1.2.14.jar"/>
- <classpathentry kind="lib" path="lib/c3p0-0.9.1.jar"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="lib" path="lib/jcip-annotations.jar"/>
- <classpathentry kind="lib" path="lib/jmock-1.1.0.jar"/>
- <classpathentry kind="lib" path="lib/concurrent.jar"/>
- <classpathentry kind="lib" path="lib/jboss-logging-log4j.jar"/>
- <classpathentry kind="lib" path="lib/jboss-logging-spi.jar"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
Deleted: core/trunk/.cvsignore
===================================================================
--- core/trunk/.cvsignore 2007-08-15 06:48:10 UTC (rev 4265)
+++ core/trunk/.cvsignore 2007-08-15 06:56:10 UTC (rev 4266)
@@ -1,13 +0,0 @@
-output
-build.log
-junit*
-0000*
-je.lck
-*.iml
-*.ipr
-*.iws
-bin
-jbossdb
-dist
-derby.log
-
Deleted: core/trunk/.project
===================================================================
--- core/trunk/.project 2007-08-15 06:48:10 UTC (rev 4265)
+++ core/trunk/.project 2007-08-15 06:56:10 UTC (rev 4266)
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>JBossCache</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
Deleted: core/trunk/migration/.cvsignore
===================================================================
--- core/trunk/migration/.cvsignore 2007-08-15 06:48:10 UTC (rev 4265)
+++ core/trunk/migration/.cvsignore 2007-08-15 06:56:10 UTC (rev 4266)
@@ -1 +0,0 @@
-output
17 years, 4 months
JBoss Cache SVN: r4265 - in core/trunk/src: test-compat and 3 other directories.
by jbosscache-commits@lists.jboss.org
Author: manik.surtani(a)jboss.com
Date: 2007-08-15 02:48:10 -0400 (Wed, 15 Aug 2007)
New Revision: 4265
Added:
core/trunk/src/test-compat/
core/trunk/src/test-compat/java/
core/trunk/src/test-perf/
core/trunk/src/test-perf/java/
core/trunk/src/test-scripts/
core/trunk/src/test-scripts/resources/
core/trunk/src/test-stress/
core/trunk/src/test-stress/java/
Log:
17 years, 4 months
JBoss Cache SVN: r4264 - core/trunk.
by jbosscache-commits@lists.jboss.org
Author: manik.surtani(a)jboss.com
Date: 2007-08-15 02:44:43 -0400 (Wed, 15 Aug 2007)
New Revision: 4264
Removed:
core/trunk/etc/
Log:
Removed etc
17 years, 4 months