activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r635971 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/network/NetworkLoadTest.java
Date Tue, 11 Mar 2008 15:20:32 GMT
Author: chirino
Date: Tue Mar 11 08:20:31 2008
New Revision: 635971

URL: http://svn.apache.org/viewvc?rev=635971&view=rev
Log:
This test is very taxing.. if you didn't have a good machine it could produce false negatives..
lowering requirements a bit to reduce false negatives.

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/network/NetworkLoadTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/network/NetworkLoadTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/network/NetworkLoadTest.java?rev=635971&r1=635970&r2=635971&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/network/NetworkLoadTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/network/NetworkLoadTest.java
Tue Mar 11 08:20:31 2008
@@ -53,7 +53,7 @@
 
 /**
  * This test case is used to load test store and forwarding between brokers.  It sets up
- * 10 brokers to which have a chain of queues which this test consumes and produces to. 
+ * n brokers to which have a chain of queues which this test consumes and produces to. 
  * 
  * If the network bridges gets stuck at any point subsequent queues will not get messages.
 This test 
  * samples the production and consumption stats every second and if the flow of messages
@@ -66,10 +66,10 @@
 	private static final transient Log LOG = LogFactory.getLog(NetworkLoadTest.class);
 
 	// How many times do we sample?
-    private static final long SAMPLES = Integer.parseInt(System.getProperty("SAMPLES", ""+60*1));
// 1 min since each sample is 1 sec long.
+    private static final long SAMPLES = Integer.parseInt(System.getProperty("SAMPLES", ""+60*1/5));

     // Slower machines might need to make this bigger.
-    private static final long SAMPLE_DURATION = Integer.parseInt(System.getProperty("SAMPLES_DURATION",
"" + 1000 * 1));
-	protected static final int BROKER_COUNT = 10;
+    private static final long SAMPLE_DURATION = Integer.parseInt(System.getProperty("SAMPLES_DURATION",
"" + 1000 * 5));
+	protected static final int BROKER_COUNT = 4;
 	protected static final int MESSAGE_SIZE = 2000;
 
 	class ForwardingClient {



Mime
View raw message