M. Budde: Problem mit Loadbalancing Apache-Tomcat über mod_jk2

Beitrag lesen

Hallo zusammen,

Ich habe folgendes Problem damit von einem Apache aus zwei Tomcats loadbanlanced anzusprechen. In der error_log bekomme ich folgende Fehlermeldungen (nnn.nnn.nnn.nnn steht für die IP-Adresse des Rechners auf dem die Tomcats (unter Red-Hat-Linux) laufen != Rechner auf dem der Apache (unter Solaris) läuft):

-----------------
[Tue Nov 25 13:01:33 2003] [notice] config.setAttribute() Error setting lb:lb timeout 30000
[Tue Nov 25 13:01:33 2003] [notice] config.setAttribute() Error setting channel.socket:nnn.nnn.nnn.nnn:8019 version 0
[Tue Nov 25 13:01:33 2003] [notice] config.setAttribute() Error setting channel.socket:nnn.nnn.nnn.nnn:8029 version 0
[Tue Nov 25 13:01:33 2003] [error] jk2_init() Can't find child 9445 in scoreboard
[Tue Nov 25 13:01:34 2003] [error] jk2_init() Can't find child 9446 in scoreboard
[Tue Nov 25 13:01:34 2003] [notice] Apache/2.0.43 (Unix) DAV/2 mod_jk2/2.0.2 configured -- resuming normal operations
[Tue Nov 25 13:01:34 2003] [notice] jk2_init() Found child 9447 in scoreboard slot 3
[Tue Nov 25 13:01:34 2003] [notice] jk2_init() Found child 9444 in scoreboard slot 0
[Tue Nov 25 13:01:34 2003] [notice] jk2_init() Found child 9448 in scoreboard slot 4
-------------------

hier die workers2.properties (nach einem Beispiel aus http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg103963.html):
-------------------
[logger]
level=INFO
debug=10

[logger.file:0]
file=/appl/webserver/apache/logs/jk2.log
level=DEBUG
debug=10
version=0

[config:]
file=/appl/webserver/apache/conf/workers2.properties
debug=10
debugEnv=10

[uriMap:]
info=Maps the requests. Options: debug
debug=10

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess servers
file=/appl/webserver/apache/logs/jk2.shm
size=1048576
debug=10

[workerEnv:]
info=Global server options
logger=logger.file:0
debug=10

[lb:lb]
info=Default load balancer.
timeout=30000
debug=10

[channel.socket:nnn.nnn.nnn.nnn:8019]
info=Ajp13 forwarding over socket to AS02 Tomcat test1
lb_factor=1
group=lb
debug=10
version=0
tomcatId=AS02T1

[channel.socket:nnn.nnn.nnn.nnn:8029]
info=Ajp13 forwarding over socket to AS02 Tomcat test2
lb_factor=1
group=lb
debug=10
version=0
tomcatId=AS02T2

[status:status]
info=Status worker, displays runtime informations
version=0

[uri:/jkstatus]
info=Display status information and checks the config file for changes.
group=status:
version=0

[uri:/admin/*]
#context=/admin
group=lb:lb
debug=10
version=0
----------------------

Weiss eventuell jemand rat? Was habe ich nicht verstanden bzw. könnte ich falsch gemacht haben?

Danke schonmal
Marcus