Hi the nodes are running in 192.168.1.20:8080 and 192.168.1.21:8080 ports while using
http://192.168.1.20:8080/jmx-console/ or
http://192.168.1.21:8080/jmx-console/ , I am able to access the JBoss console.
But while using
http://192.168.1.20:8089/jmx-console/ its not working. 8099 is the port where apache runs. If i run my any one of the JBoss in localhost then apache is communicating with JBoss and
http://192.168.1.20:8089/jmx-console/ is working. So my conclusion is apache is trying to find only in localhost and its not using workers.properties file. I am not able to find from where its picking the localhost entry. Please help.
workers.properties
# Define list of workers that will be used
# for mapping requests
worker.list=loadbalancer,status
# Define Node1
# modify the host as your host IP or DNS name.
worker.node1.port=8009
worker.node1.host=192.168.1.20
worker.node1.type=ajp13
worker.node1.lbfactor=1
worker.node1.cachesize=10
# Define Node2
# modify the host as your host IP or DNS name.
worker.node2.port=8009
worker.node2.host=192.168.1.21
worker.node2.type=ajp13
worker.node2.lbfactor=1
worker.node2.cachesize=10
# Load-balancing behaviour
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=globe1,globe2
worker.loadbalancer.sticky_session=1
#worker.list=loadbalancer
# Status worker for managing load balancer
worker.status.type=status
mod-jk.conf
# Load mod_jk module
# Specify the filename of the mod_jk lib
LoadModule jk_module modules/mod_jk.so
JkShmFile logs/mod_jk.shm
# Where to find workers.properties
JkWorkersFile conf/workers.properties
# Where to put jk logs
JkLogFile logs/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevel info
# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
# JkOptions indicates to send SSK KEY SIZE
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat
JkRequestLogFormat "%w %V %T"
# Mount your applications
#JkMount /application/* loadbalancer
JkMount /jmx-console loadbalancer
JkMount /jmx-console/* loadbalancer
httpd.conf
# Include mod_jk's specific configuration file
Include conf/mod-jk.conf
MOD-jk log
[Tue Jan 20 10:35:32 2009][537:1] [info] mod_jk.c (3018): mod_jk/1.2.27 initialized
[Tue Jan 20 10:35:32 2009][538:1] [warn] jk_map.c (410): The attribute 'worker.node1.cachesize' is deprecated - please check
the documentation for the correct replacement.
[Tue Jan 20 10:35:32 2009][538:1] [warn] jk_map.c (410): The attribute 'worker.node2.cachesize' is deprecated - please check
the documentation for the correct replacement.
[Tue Jan 20 10:35:32 2009][538:1] [info] mod_jk.c (3018): mod_jk/1.2.27 initialized
[Tue Jan 20 10:36:12 2009][539:1] [info] jk_connect.c (593): connect to 127.0.0.1:8009 failed (errno=146)
[Tue Jan 20 10:36:12 2009][539:1] [info] jk_ajp_common.c (922): Failed opening socket to (127.0.0.1:8009) (errno=146)
[Tue Jan 20 10:36:12 2009][539:1] [error] jk_ajp_common.c (1467): (globe1) connecting to backend failed. Tomcat is probably n
ot started or is listening on the wrong port (errno=146)
[Tue Jan 20 10:36:12 2009][539:1] [info] jk_ajp_common.c (2407): (globe1) sending request to tomcat failed (recoverable), bec
ause of error during request sending (attempt=1)
[Tue Jan 20 10:36:13 2009][539:1] [info] jk_connect.c (593): connect to 127.0.0.1:8009 failed (errno=146)
[Tue Jan 20 10:36:13 2009][539:1] [info] jk_ajp_common.c (922): Failed opening socket to (127.0.0.1:8009) (errno=146)
[Tue Jan 20 10:36:13 2009][539:1] [error] jk_ajp_common.c (1467): (globe1) connecting to backend failed. Tomcat is probably n
ot started or is listening on the wrong port (errno=146)
[Tue Jan 20 10:36:13 2009][539:1] [info] jk_ajp_common.c (2407): (globe1) sending request to tomcat failed (recoverable), bec
ause of error during request sending (attempt=2)
[Tue Jan 20 10:36:13 2009][539:1] [error] jk_ajp_common.c (2426): (globe1) connecting to tomcat failed.
[Tue Jan 20 10:36:13 2009][539:1] [info] jk_lb_worker.c (1347): service failed, worker globe1 is in error state
[Tue Jan 20 10:36:13 2009][539:1] [info] jk_connect.c (593): connect to 127.0.0.1:8009 failed (errno=146)
[Tue Jan 20 10:36:13 2009][539:1] [info] jk_ajp_common.c (922): Failed opening socket to (127.0.0.1:8009) (errno=146)
[Tue Jan 20 10:36:13 2009][539:1] [error] jk_ajp_common.c (1467): (globe2) connecting to backend failed.