Hi, I am doing load testing. I'm trying to ensure that our production site can handle as much traffic as it possibly can and I'm trying to make sure I refine my performance tuning skills on a test environment. Here are some more specifics:
Mod_jk is 1.2.31 Settings in workers.properties: worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.connection_pool_timeout=180 worker.worker1.lbfactor=1 I'm not sure how many threads would be good to handle how many connections :) I'm just trying to understand more of the process so i can start fine-tuning where I can. Right now, I'm trying to understand why Tomcat could not respond anymore if threads are still waiting but maybe with the server being cpu bound as it is, it's just taking a long long time and everything is as could be "expected". Cheers, Charles On Tue, Oct 23, 2012 at 3:50 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Charles, > > On 10/23/12 10:45 AM, Charles Richard wrote: > > I'm testing performance of our Java application in Tomcat (6.0.30) > > and we have maxThreads set to 750. I noticed that when i did a > > netstat -an | grep my_ajp_port, i saw around 860 connections. > > In what TCP state were they? If you are doing load-testing, you might > see a lot in TIME_WAIT or TIME_WAIT2 as they (slowly) shutdown. > > What is your connector configuration? Be specific. > > > Wanting to know what was happening, I did a jstack of my tomcat pid > > and inspected the track with Samurai. > > > > I was expecting to see > 750 Worker Threads in my stack since some > > extra worker threads are needed by Tomcat. What i saw was around > > 60 worker threads in the trace. > > Sounds great: Tomcat can handle your 750 connections with only 60 > threads. Sounds good, no? > > - -chris > -----BEGIN PGP SIGNATURE----- > Version: GnuPG/MacGPG2 v2.0.17 (Darwin) > Comment: GPGTools - http://gpgtools.org > Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ > > iEYEARECAAYFAlCG5vAACgkQ9CaO5/Lv0PCafgCfbB754nPjG5UxgHveQS31UwEP > +hcAnRZjEB16Rf9fNdYgOxnpkHMc51xW > =ElVx > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >