Author: bstansberry(a)jboss.com
Date: 2008-11-03 17:58:57 -0500 (Mon, 03 Nov 2008)
New Revision: 2049
Modified:
trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/client/ModClusterDemo.java
Log:
Adjust thread count to not overuse default AJP connector pool inside a 2 node cluster
Modified:
trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/client/ModClusterDemo.java
===================================================================
---
trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/client/ModClusterDemo.java 2008-11-03
17:42:21 UTC (rev 2048)
+++
trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/client/ModClusterDemo.java 2008-11-03
22:58:57 UTC (rev 2049)
@@ -55,9 +55,9 @@
private static final String DEFAULT_PROXY_PORT =
System.getProperty("mod_cluster.proxy.port", "8000");
private static final String DEFAULT_CONTEXT_PATH = "load-demo";
private static final String DEFAULT_SESSION_TIMEOUT = "20";
- private static final int DEFAULT_NUM_THREADS = 400;
+ private static final int DEFAULT_NUM_THREADS = 80;
private static final int DEFAULT_SESSION_LIFE = 120;
- private static final int DEFAULT_SLEEP_TIME = 500;
+ private static final int DEFAULT_SLEEP_TIME = 100;
private static final int DEFAULT_STARTUP_TIME = 120;
private final RequestDriver requestDriver;