activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r947638 - in /activemq/trunk/activemq-core: pom.xml src/test/java/org/apache/activemq/perf/KahaDBDurableTransactedTopicTest.java src/test/java/org/apache/activemq/perf/SimpleDurableTopicTest.java
Date Mon, 24 May 2010 13:28:51 GMT
Author: gtully
Date: Mon May 24 13:28:51 2010
New Revision: 947638

URL: http://svn.apache.org/viewvc?rev=947638&view=rev
Log:
make perf test num producers configurable via command line to allow easy comparison, make
test use transacted sends

Modified:
    activemq/trunk/activemq-core/pom.xml
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/perf/KahaDBDurableTransactedTopicTest.java
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/perf/SimpleDurableTopicTest.java

Modified: activemq/trunk/activemq-core/pom.xml
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/pom.xml?rev=947638&r1=947637&r2=947638&view=diff
==============================================================================
--- activemq/trunk/activemq-core/pom.xml (original)
+++ activemq/trunk/activemq-core/pom.xml Mon May 24 13:28:51 2010
@@ -54,6 +54,7 @@
       '=META-INF.services.org.apache.xbean.spring.http.activemq.apache.org.schema';-noimport:=true
     </activemq.osgi.export>
     <activemq.osgi.dynamic.import>*</activemq.osgi.dynamic.import>
+    <surefire.argLine>-Xmx512M</surefire.argLine>
   </properties>
 
   <dependencies>
@@ -408,7 +409,7 @@
           <forkMode>pertest</forkMode>
           <childDelegation>false</childDelegation>
           <useFile>true</useFile>
-          <argLine>-Xmx512M</argLine>
+          <argLine>${surefire.argLine}</argLine>
 
            <systemProperties>
             <property>

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/perf/KahaDBDurableTransactedTopicTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/perf/KahaDBDurableTransactedTopicTest.java?rev=947638&r1=947637&r2=947638&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/perf/KahaDBDurableTransactedTopicTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/perf/KahaDBDurableTransactedTopicTest.java
Mon May 24 13:28:51 2010
@@ -23,11 +23,11 @@ import javax.jms.JMSException;
 /**
  * @version $Revision: 1.3 $
  */
-public class KahaDBDurableTransactedTopicTest extends SimpleDurableTopicTest {
+public class KahaDBDurableTransactedTopicTest extends KahaDBDurableTopicTest {
 
     @Override
     protected PerfProducer createProducer(ConnectionFactory fac, Destination dest, int number,
byte[] payload) throws JMSException {
-        return new PerfProducer(fac, dest, payload);
+        return new PerfProducer(fac, dest, payload, true);
     }
 
   

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/perf/SimpleDurableTopicTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/perf/SimpleDurableTopicTest.java?rev=947638&r1=947637&r2=947638&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/perf/SimpleDurableTopicTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/perf/SimpleDurableTopicTest.java
Mon May 24 13:28:51 2010
@@ -33,8 +33,8 @@ public class SimpleDurableTopicTest exte
     protected void setUp() throws Exception {
         numberOfDestinations=1;
         numberOfConsumers = 2;
-        numberofProducers = 1;
-        sampleCount=1000;
+        numberofProducers = Integer.parseInt(System.getProperty("SimpleDurableTopicTest.numberofProducers",
"1"), 10);
+        sampleCount= Integer.parseInt(System.getProperty("SimpleDurableTopicTest.sampleCount",
"1000"), 10);
         playloadSize = 1024;
         super.setUp();
     }



Mime
View raw message