logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Problem with loadbalancing 2 tomcat instances with apache
Author
shashi.kumar@gmail.com



Joined: 15 Jan 2013
Posts: 8
Location: India

PostPosted: Mon 28 Jan '13 21:47    Post subject: Problem with loadbalancing 2 tomcat instances with apache Reply with quote

Hi,

I am not able to loadbalance my 2 tomcat 5.5.26 with Apache 2.2.23 on RHEL 64 bit. Using mod_jk 1.2.31. Below is worker.poperties file:
# workers.properties
#
worker.list=balancer,stat
worker.tomcat1.port=11009
worker.tomcat1.host=localhost
worker.tomcat1.type=ajp13
worker.tomcat1.lbfactor=10
worker.tomcat2.port=8009
worker.tomcat2.host=localhost
worker.tomcat2.type=ajp13
worker.tomcat2.lbfactor=10
worker.balancer.type=lb
worker.balancer.balance_workers=tomcat1,tomcat2
worker.stat.type=status

Added in httpd.conf:
JkMount / balance
JkMount /status stat

getting the below error in log:
jk_handler::mod_jk.c (2635): Could not find a worker for worker name=stat


Please help
Thanks,
Shashi
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Tue 29 Jan '13 15:17    Post subject: Reply with quote

You should make sure that your httpd.conf file has a reference to your workers file. e.g.
JkWorkersFile c:/Apache2.2_21/conf/workers.properties

Also the names you are using are tomcat1 and tomcat2 not stat. Wink
Back to top


Reply to topic   Topic: Problem with loadbalancing 2 tomcat instances with apache View previous topic :: View next topic
Post new topic   Forum Index -> Apache