Multiple jvmRoute possible?
rajeshchande Aug 25, 2008 7:31 AMHello,
I have a clustered environment with 2 JBoss instances (node1 & node2) in the cluster up and running fine with applications deployed on the same.
I have Apache ----> JBoss (Apache forwarding requests to JBoss using Mod_jk.
Apache - 2.0.55
JBoss - 4.2.2GA
mod_jk - 1.2.20
Now I have a new application which needs to be deployed on a "standalone" JBoss instance.
Can I use node1 from the cluster also as a standalone configuration by deploying the WAR file in the "deploy" folder instead of "farm" folder?
For sending requests from Apache to JBoss 1, can i have the following configuration in server.xml as follows
################# <!-- Define an AJP 1.3 Connector on port 8009 --> <Connector port="53041" address="${jboss.bind.address}" protocol="AJP/1.3" emptySessionPath="true" enableLookups="false" redirectPort="8443" maxThreads="200" connectionTimeout="600000" /> <Engine name="jboss.web" defaultHost="localhost" jvmRoute="hubudweb-devl-01,worker1"> #################
This configuration works fine for me i.e. Jboss node1 works fine both as a clustered instance and a stand alone instance.
So can I have multiple jvmRoute in use? Will this effect Session replication or Load Balancing in any ways?
At times I get following error in Apache mod_jk logs:
##################### [Mon Aug 25 10:57:31 2008]hubudweb-devl-cluster-01 0.006362 [Mon Aug 25 10:57:31 2008]hubudweb-devl-cluster-01 0.010887 [Mon Aug 25 10:57:31 2008]hubudweb-devl-cluster-01 0.010962 [Mon Aug 25 10:57:32 2008][25100:0019] [error] get_most_suitable_worker::jk_lb_worker.c (719): locking failed with errno=45 [Mon Aug 25 10:57:32 2008]hubudweb-devl-cluster-01 0.011048 [Mon Aug 25 10:57:32 2008]hubudweb-devl-cluster-01 0.011544 [Mon Aug 25 10:57:32 2008]hubudweb-devl-cluster-01 0.011031 [Mon Aug 25 10:57:33 2008]hubudweb-devl-cluster-01 0.011322 #####################
Is multiple jvmRoute th culprit for this error? What could be the reason for above error?
Regards,
Rajesh.