Dear Tomcat users,
I'm a new tomcat user evaluating it for FreeBSD5.2. I'm trying to ascertain how well Tomcat will scale from 1- to 2- and 4-proc BSD machines. The only problem is, no matter how I configure workers.properties and server.xml, I get about the same RPS and TTLB for all setups, despite adding "worker"s. I'm using mod_jk (JK-connector-1.2.6) with Apache 2.0.
One Tomcat installation uses 8001 as its primary port, the other 9009, and I run startup.sh and both, spawning 2 times 46 = 92 java processes. Is there something fundamental about Tomcat scalability that I'm missing, or is my definition of "worker" processes off? My server.xml is copied exactly from the distribution. The important parts of the other files are below.
Many thanks,
Dave
In httpd.conf:
LoadModule jk_module modules/mod_jk.so JkWorkersFile /home/tomcat/conf/workers.properties JkLogFile /home/tomcat/logs/mod_jk.log JkLogLevel info JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat "%w %V %T" JkMount /jsp/*.jsp router ---
In workers.properties: # The advanced router LB worker worker.list=router # Define a 'local_worker' worker using ajp13 worker.worker1.port=8001 worker.worker1.host=127.0.0.1 worker.worker1.type=ajp13 worker.worker1.lbfactor=1 worker.worker1.socket_keepalive=1 worker.worker1.socket_timeout=300 #worker.worker1.local_worker=1 # Define another 'local_worker' worker using ajp13 worker.worker2.port=9009 worker.worker2.host=127.0.0.1 worker.worker2.type=ajp13 worker.worker2.lbfactor=1 worker.worker2.socket_keepalive=1 worker.worker2.socket_timeout=300 #worker.worker2.local_worker=1 # Define the LB worker worker.router.type=lb worker.router.balanced_workers=worker1 #worker.router.local_worker_only=1 --
_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]