mirror of https://github.com/apache/activemq.git
make perf test num producers configurable via command line to allow easy comparison, make test use transacted sends
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@947638 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
09642bbcfa
commit
c92fe9992b
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -33,8 +33,8 @@ public class SimpleDurableTopicTest extends SimpleTopicTest {
|
|||
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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue