Load testing with Tomcat 5.5, Apache 2.2 and mod_proxy_ajp
Hello, I'm currently load testing a webapp running on Tomcat 5.5 that is fronted by Apache 2.2 and uses mod_proxy_ajp to communicate between the two. I'm seeing some odd behavior that I cannot explain. I have this line in my httpd.conf file: ProxyPass /webapp/ ajp://localhost:8009/webapp/ min=256 max=256 and in tomcat I have maxThreads set to 256 for both my HTTP connector and my AJP connector. For some reason, though, I still get a message in my tomcat log saying: ERROR TP-Processor4 org.apache.tomcat.util.threads.ThreadPool - All threads (256) are currently busy, waiting. Increase maxThreads (256) or check the servlet status Why does this happen? I thought my 'max=256' setting in httpd.conf would only 256 connections at once. Also, if anyone has any experience with setting up Apache and Tomcat for very high performance, I would appreciate any pointers. Thanks, Ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JK Apache2 Tomcat 5.0.28 Truncated Response
Hello, I'm having trouble with my Apache2/Tomcat 5 via JK setup. Most requests are completed fine, but large requests (large is over 64K) are truncated. I get a variable amount of data back. I'm testing this using wget (a simple command line http client). When I go directly to Tomcat, I get all 128K of data back every time. When I go through Apache, I get a different amount of data back every time (I've seen between 68K and 105K). I also have a stock version of Apache 1.3 on my OS X server, so I tested this out with that and everything worked fine. This leads me to believe that this is some issue with Apache2. (I'm not sure about all the versions that I was using in this test as I didn't install them.) At first I thought this was a JkShmSize issue. So I jacked this way up. But that didn't fix the problem. (I also noticed that there were a number of examples on the web that tried to configure this directive using a string like '10M'. This doesn't work. Or should it? When I looked at the code, I saw that it reads the value using atoi, then multiplies by 1024.) Here's what I've got: Mac OS X 10.4.3 Apache 2.0.52 MPM JK 2.0.14 (downloaded from http://www.apache.org/dist/tomcat/tomcat- connectors/jk/binaries/macosx/jk-1.2.14/jakarta-tomcat-connectors- jk-1.2.14-macosx-apache-2.0.54.so) Tomcat config: Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3/ Apache config: JkWorkersFile /sw/etc/apache2/workers.properties JkLogFile /sw/var/apache2/logs/jk.log JkLogLevel info JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkShmFile /sw/var/apache2/run/jk.shm JkShmSize 32768 JkMount /karta/* tomcat JkMount /kartaadmin/* tomcat Thanks for any help. I've been trying to figure tis one out for a few days now. Ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]