httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joaquin Martinez <>
Subject Re: [users@httpd] loadbalancer not working as expected
Date Tue, 20 Apr 2010 13:07:01 GMT
Igor, thanks a lot for your help. I made the changes yesterday and
everything is working as expected now. Bummer, one of the appsrv has
the appsvr who was overloaded, this being the reason for all the
session going to it.

Thanks a lot!

On Sun, Apr 18, 2010 at 11:06 PM, Igor Cicimov <> wrote:
> Hi,
> Have you done any modification on the tomcats? I think you need to put the
> jvmRoute parameter as follows in the conf/server.xml file:
> <Engine jvmRoute="appsvr1" name="Standalone" defaultHost="localhost"
> debug="0">
> and same for appsvr2 and appsvr3.
> Cheers,
> Igor
> On Sat, Apr 17, 2010 at 5:35 AM, Joaquin Martinez
> <> wrote:
>> Hello all. Please, bear with me. I have made a configuration on
>> file to balance dynamic servlet content through
>> three application servers, using Tomcat as our web server. As per the
>> configuration, I am not seeing the load being balance across all three
>> app servers, but rather the load goes especifically to one of them.
>> Once I shutdown this Tomcat server, the load goes to another server
>> and so on. I am seeing this through the Sessions column under Tomcat's
>> manager application on each server. It is my understanding the the
>> load should be almost round-robin. So, Im going to show you my
>> configuration to see if you can light me on any errors.
>> First, we are using apache Apache/2.0.58 and Tomcat Tomcat/5.5.23.
>> Operating system is HP-UX 11.31, Both components comes bundled with
>> HP-UX Web Server Suite.
>> Here's the content of the file.
>> worker.list=loadbalancer,jkstatus
>> worker.appsvr1.port=8009
>> worker.appsvr1.lbfactor=37
>> worker.appsvr1.connection_pool_timeout=600
>> worker.appsvr1.retries=2
>> worker.appsvr1.socket_keepalive=true
>> worker.appsvr1.type=ajp13
>> worker.appsvr2.port=8009
>> worker.appsvr2.lbfactor=25
>> worker.appsvr2.connection_pool_timeout=600
>> worker.appsvr2.retries=2
>> worker.appsvr2.socket_keepalive=true
>> worker.appsvr2.type=ajp13
>> worker.appsvr3.port=8009
>> worker.appsvr3.lbfactor=37
>> worker.appsvr3.connection_pool_timeout=600
>> worker.appsvr3.retries=2
>> worker.appsvr3.socket_keepalive=true
>> worker.appsvr3.type=ajp13
>> worker.jkstatus.type=status
>> worker.loadbalancer.type=lb
>> worker.loadbalancer.balance_workers=appsvr1,appsvr2,appsvr3
>> worker.loadbalancer.sticky_session=true
>> NOTE: Previously, I had lbfactor set to 37 on all three. and in an
>> attemp to change the behaivour I have been flirting with lower values
>> for appsvr2, but with not avail. Currently, the appsvr that is getting
>> the most load is appsvr2. It is annoying, because to solve the problem
>> I have to bounce Tomcat every time, since the application starts to
>> gets slow. So, how do I do to get Apache to distribuite the load
>> uniformily (at least round-robin) across all three ? Is there any
>> missing configuration you can point out on the ? At
>> your request, I can show you the mod_jk.conf file.
>> Thansk! appreciate any help!
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See <URL:> for more info.
>> To unsubscribe, e-mail:
>>   "   from the digest:
>> For additional commands, e-mail:


Joaquin Martinez
En ninguno de mis mensajes trato de insultar ó perjudicar intencionalmente
 a nadie, pero si por alguna razón sientes que así lo hice, disculpame.. pues
 el ser humano no es perfecto y comete errores.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message