Hi Chris,

The Apache MPM I was using the default configuration (believe is prefork
MPM)

    StartServers          5
    MinSpareServers       5
    MaxSpareServers      10
    MaxClients          150
    MaxRequestsPerChild   0

And I've changed to following (the result did not improve or any better
sign)
    StartServers          64
    MinSpareServers       64
    MaxSpareServers      128
    MaxClients           256
    MaxRequestsPerChild   0


For tomcat executor this my setting, as I mention early

    <Executor name="tomcatThreadPool" namePrefix="catalina-exec-" 
        maxThreads="150" minSpareThreads="25" maxSpareThreads="75"/>

    <Connector executor="tomcatThreadPool" port="8080" protocol="HTTP/1.1" 
        enableLookups="false" disableUploadTimeout="true"
               connectionTimeout="20000" 
               redirectPort="8443" />

The scenario testing in Jmeter, before that in the tomcat I've 3 different
webapps (The Jmeter testing have 3 HTTP request and each point to each
webapps in the tomcat)

1) Number of thread = 200 and ramp-up period=1
   Result: Test 10 / Pass 10
2) Number of thread = 300 and ramp-up period=1
   Overall result: Test 10 each test will get 3%~5% error (but the tomcat /
apache still working)
   * The error is java.net.ConnectException: Connection refused: connect
3) Number of thread = 500 and ramp-up period=1
   Overall result: Test 10 each test will get 20%~50% error (but the tomcat
/ apache still working)
   * The error is java.net.ConnectException: Connection refused: connect

My plan is to target Number of thread = 1000 and ramp-up period =1 (I no
idea this can it be done) and the result is 100% if possible (so I can have
the benchmarks)

In the same time I will look on database connection, thank you as yesterday
you have giving the tips of IO part and worry when grab data from database
it may delay.

Thank You for your time and knowledge :-)

- McAfe
-- 
View this message in context: 
http://old.nabble.com/Performance---*SpareThreads-tp31687863p31704618.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to