Hi Chris, My reply as follows Mcafe[20110523] and thanks for the reply
- McAfe Christopher Schultz-2 wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > McAfe, > > On 5/24/2011 3:01 AM, McAfe wrote: >> Apache 2.2 (using mod_jk) >> >> The testing result I've use Jmeter (configured 100 thread per-second) it >> will die when thread(Jmeter) between 200 ~ 300 > > AJP expects to have persistent connections. What is your Apache httpd > configuration for StartServers/MinSpareServers/MaxSpareServers (for > prefork MPM) or startServers/MinSpareThreads/MaxSpareThreads (for worker > MPM)? > > Mcafe[20110523]: Did not configure Apache so far target on Tomcat (as for > research from google and test the result in Apache not much different) > > What are you settings on the Tomcat side for your AJP <Connector>? > > Mcafe[20110523]: the follows is my setting for AJP <Connector> > > <Connector port="8080" protocol="HTTP/1.1" > maxThreads="150" minSpareThreads="25" maxSpareThreads="75" > enableLookups="false" disableUploadTimeout="true" > connectionTimeout="20000" > redirectPort="8443" /> > >> From the research get to know minSpareThreads and maxSpareThreads, after >> set >> the configure it can handle more to 400 ~ 600 > > minSpareThreads and maxSpareThreads shouldn't be used when using AJP: > you should be using the exact number configured on the httpd side. > Otherwise, you risk AJP connections churning. > > Mcafe[20110523]: Sorry no idea about this, as I'm new and wanted to learn > more. Fine tuning is not simple thing as just develop, hope you can give > me more example > >> (1st) What is the minSpareThreads and maxSpareThreads is? [Unable to find >> the description on tomcat 6.0 but able find for tomcat 5.5 as >> http://tomcat.apache.org/tomcat-5.5-doc/config/http.html] > > Tomcat 6 and 7 no longer use these settings. If you want a > dynamically-sized thread pool, use an <Executor> instead. > http://tomcat.apache.org/tomcat-6.0-doc/config/executor.html > > Mcafe[20110523]: Yup saw the default setting in the server.xml but unable > to find any useful example for the setting tried and the result not much > different (from the testing) > > <Executor name="tomcatThreadPool" namePrefix="catalina-exec-" > maxThreads="150" minSpareThreads="4"/> > >> (2nd) From read 1 by 1 at the forums about Performance tuning - tomcat, >> some >> mention keep hit > 20k per seconds, how their do it? > > That depends a lot on what kind of load it was under. Serving static > files is fast. Running database transactions is slow. Also, sizing the > various pools can have an effect: you can max-out the throughput of a > single client but still have plenty of CPU time and I/O time available > on the server. If that's the case, make your connection pools bigger. > > Mcafe[20110523]: Yup, the webapps have to grab data from database and > return according. I'm interesting with "you can max-out the throughput of > a > single client but still have plenty of CPU time and I/O time available > on the server. If that's the case, make your connection pools bigger." > > Can you explain more? > > - -chris > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAk3b86gACgkQ9CaO5/Lv0PD/BgCgn4GRuqON8mS9Y0IO9j8ra0Ou > TTgAn08U0AgGtpi6JE+nnk1OLNLlhzDK > =zahv > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://old.nabble.com/Performance---*SpareThreads-tp31687863p31696321.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