Author: jfrederic.clere(a)jboss.com
Date: 2012-02-02 11:24:19 -0500 (Thu, 02 Feb 2012)
New Revision: 1941
Modified:
trunk/webapps/docs/config/native.xml
Log:
Add a section about threads and benchs...
Modified: trunk/webapps/docs/config/native.xml
===================================================================
--- trunk/webapps/docs/config/native.xml 2012-02-02 10:42:42 UTC (rev 1940)
+++ trunk/webapps/docs/config/native.xml 2012-02-02 16:24:19 UTC (rev 1941)
@@ -52,6 +52,19 @@
</section>
+<section name="Threads">
+ <p>If you try to bench native you should remember that the number of active
threads is limited to 32 x number of processors.
+ Most of the tests tools are not realistic: they make the requests synchronously (and
with no wait time) so the max number of
+ active threads could be reached quickly. Once it is reached the socket connections
are closed.
+ In case you want the connector to wait for an available thread you can set
org.apache.tomcat.util.net.Constants.WAIT_FOR_THREAD
+ to true. For example in standalone.xml:
+ </p>
+<source>
+ <system-properties>
+ <property
name="org.apache.tomcat.util.net.Constants.WAIT_FOR_THREAD"
value="true"/>
+ </system-properties>
+</source>
+</section>
</body>
Show replies by date