Hi

Still awaiting for any Reply

Have provided  the necessary info for the LB  failure




with regards
Karthik

karthikn wrote:
Hi

With the setting as given below,still the TEST CASE for LB is failing

O/s  : win2000
JSDK: java version "1.6.0_03"


1a) c:/TOMCAT1 (server.xml)

<?xml version='1.0' encoding='utf-8'?>
  <Server port="8007" shutdown="SHUTDOWN">
  <Listener className="org.apache.catalina.core.AprLifecycleListener"
SSLEngine="on" />
  <Listener className="org.apache.catalina.core.JasperListener" />
  <Listener
className="org.apache.catalina.mbeans.ServerLifecycleListener" />
  <Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  <GlobalNamingResources>
  <Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase" description=" "
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
  </GlobalNamingResources>

   <Service name="Catalina">
   <Connector port="8081" protocol="HTTP/1.1" connectionTimeout="20000"
redirectPort="8443" />
<!-- Define an AJP 1.3 Connector on port 8009 -->
     <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
<!-- <Engine name="Standalone" defaultHost="localhost" jvmRoute="jvm1"/> -->

     <Engine name="Catalina" defaultHost="localhost" jvmRoute="node01">
     <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"
channelSendOptions="8">
     <Manager className="org.apache.catalina.ha.session.DeltaManager"
expireSessionsOnShutdown="false" notifyListenersOnReplication="true"/>
     <Channel className="org.apache.catalina.tribes.group.GroupChannel">
     <Membership
className="org.apache.catalina.tribes.membership.McastService"
         address="228.0.0.4"
         port="45564"
         frequency="500"
         dropTime="3000"/>
     <Receiver
className="org.apache.catalina.tribes.transport.nio.NioReceiver"
        address="auto"
        port="4000"
        autoBind="100"
        selectorTimeout="5000"
        maxThreads="6"/>

    <Sender
className="org.apache.catalina.tribes.transport.ReplicationTransmitter">
    <Transport
className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/>
    </Sender>
    <Interceptor
className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/>
    <Interceptor
className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/>
    </Channel>
    <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
filter=""/>
    <Valve className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>
    <Deployer className="org.apache.catalina.ha.deploy.FarmWarDeployer"
       tempDir="/tmp/war-temp/"
       deployDir="/tmp/war-deploy/"
       watchDir="/tmp/war-listen/"
       watchEnabled="false"/>
    <ClusterListener
className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>
    <ClusterListener
className="org.apache.catalina.ha.session.ClusterSessionListener"/>
    </Cluster>

<!-- <Valve className="org.apache.catalina.valves.RequestDumperValve"/> -->
    <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
    <Host name="localhost"  appBase="webapps"  unpackWARs="true"
autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
<!-- <Valve className="org.apache.catalina.authenticator.SingleSignOn"
/> -->
<!-- <Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/> -->

      </Host>
    </Engine>
  </Service>
</Server>


1b)TOMCAT1 startup Console

May 30, 2008 1:50:37 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performanc
e in production environments was not found on the java.library.path:
d:\java\jdk
163\bin;.;C:\WINNT\Sun\Java\bin;C:\WINNT\system32;C:\WINNT;C:\Program
Files\PC C
onnectivity
Solution\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;e:\oracl
e\ora92\bin;D:/JAVA/JDK142/bin;d:/java/ANT/bin;C:\IMGEDIT\GTK\2.0\bin;C:\Apache\
Apache2;C:\MYSQL5\bin
May 30, 2008 1:50:37 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8081
May 30, 2008 1:50:37 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1214 ms
May 30, 2008 1:50:37 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 30, 2008 1:50:37 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.16
May 30, 2008 1:50:37 PM org.apache.catalina.ha.tcp.SimpleTcpCluster start
INFO: Cluster is about to start
May 30, 2008 1:50:37 PM
org.apache.catalina.tribes.transport.ReceiverBase bind
INFO: Receiver Server Socket bound to:/10.10.16.63:4000
May 30, 2008 1:50:37 PM
org.apache.catalina.tribes.membership.McastServiceImpl s
etupSocket
INFO: Setting cluster mcast soTimeout to 500
May 30, 2008 1:50:37 PM
org.apache.catalina.tribes.membership.McastServiceImpl w
aitForMembers
INFO: Sleeping for 1000 milliseconds to establish cluster membership,
start leve
l:4
May 30, 2008 1:50:38 PM
org.apache.catalina.tribes.membership.McastServiceImpl w
aitForMembers
INFO: Done sleeping, membership established, start level:4
May 30, 2008 1:50:38 PM
org.apache.catalina.tribes.membership.McastServiceImpl w
aitForMembers
INFO: Sleeping for 1000 milliseconds to establish cluster membership,
start leve
l:8
May 30, 2008 1:50:39 PM
org.apache.catalina.tribes.membership.McastServiceImpl w
aitForMembers
INFO: Done sleeping, membership established, start level:8
May 30, 2008 1:50:39 PM org.apache.catalina.ha.deploy.FarmWarDeployer start
SEVERE: FarmWarDeployer can only work as host cluster subelement!
May 30, 2008 1:50:40 PM org.apache.catalina.core.StandardContext
addApplicationL
istener
INFO: The listener "com.xius.common.SessionInvalidator" is already
configured fo
r this context. The duplicate definition has been ignored.
May 30, 2008 1:50:40 PM org.apache.catalina.startup.ContextConfig
validateSecuri
tyRoles
INFO: WARNING: Security role name wifi used in an <auth-constraint>
without bein
g defined in a <security-role>
May 30, 2008 1:50:40 PM org.apache.catalina.ha.session.DeltaManager start
INFO: Register manager  to cluster element Engine with name Catalina
May 30, 2008 1:50:40 PM org.apache.catalina.ha.session.DeltaManager start
INFO: Starting clustering manager at
May 30, 2008 1:50:40 PM org.apache.catalina.ha.session.DeltaManager
getAllCluste
rSessions
INFO: Manager [localhost#]: skipping state transfer. No members active
in cluste
r group.
=========== START SERVLET CALLED START ======================
=========== APPLICATION CONTEXT :  ROOT  ============
=========== START SERVLET CALLED END ========================

May 30, 2008 1:50:41 PM
org.apache.catalina.ha.session.JvmRouteBinderValve start

INFO: JvmRouteBinderValve started
May 30, 2008 1:50:41 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8081
May 30, 2008 1:50:41 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
May 30, 2008 1:50:41 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/46  config=null
May 30, 2008 1:50:41 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3984 ms
May 30, 2008 1:50:43 PM org.apache.catalina.tribes.io.BufferPool
getBufferPool
INFO: Created a buffer pool with max size:104857600 bytes of
type:org.apache.cat
alina.tribes.io.BufferPool15Impl
May 30, 2008 1:50:44 PM org.apache.catalina.ha.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.tribes.membership.MemberImpl[
tcp://{10, 10, 16, 63}:4001,{10, 10, 16, 63},4001, alive=1015,id={-35 31
-105 54
 -109 -89 64 120 -73 115 -53 -12 -30 123 1 -96 }, payload={},
command={}, domain
={}, ]




2a) d:/TOMCAT2 (server.xml)

<?xml version='1.0' encoding='utf-8'?>
  <Server port="8008" shutdown="SHUTDOWN">
  <Listener className="org.apache.catalina.core.AprLifecycleListener"
SSLEngine="on" />
  <Listener className="org.apache.catalina.core.JasperListener" />
  <Listener
className="org.apache.catalina.mbeans.ServerLifecycleListener" />
  <Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  <GlobalNamingResources>
  <Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase" description=" "
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
  </GlobalNamingResources>

   <Service name="Catalina">
   <Connector port="8082" protocol="HTTP/1.1" connectionTimeout="20000"
redirectPort="8443" />
<!-- Define an AJP 1.3 Connector on port 8009 -->
     <Connector port="8010" protocol="AJP/1.3" redirectPort="8443" />
<!-- <Engine name="Standalone" defaultHost="localhost" jvmRoute="jvm1"/> -->
     <Engine name="Catalina" defaultHost="localhost" jvmRoute="node02">
     <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"
channelSendOptions="8">
     <Manager className="org.apache.catalina.ha.session.DeltaManager"
expireSessionsOnShutdown="false" notifyListenersOnReplication="true"/>
     <Channel className="org.apache.catalina.tribes.group.GroupChannel">
     <Membership
className="org.apache.catalina.tribes.membership.McastService"
         address="228.0.0.4"
         port="45564"
         frequency="500"
         dropTime="3000"/>
     <Receiver
className="org.apache.catalina.tribes.transport.nio.NioReceiver"
        address="auto"
        port="4001"
        autoBind="100"
        selectorTimeout="5000"
        maxThreads="6"/>
    <Sender
className="org.apache.catalina.tribes.transport.ReplicationTransmitter">
    <Transport
className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/>
    </Sender>
    <Interceptor
className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/>
    <Interceptor
className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/>
    </Channel>
    <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
filter=""/>
    <Valve className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>
    <Deployer className="org.apache.catalina.ha.deploy.FarmWarDeployer"
       tempDir="/tmp/war-temp/"
       deployDir="/tmp/war-deploy/"
       watchDir="/tmp/war-listen/"
       watchEnabled="false"/>
    <ClusterListener
className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>
    <ClusterListener
className="org.apache.catalina.ha.session.ClusterSessionListener"/>
    </Cluster>

<!-- <Valve className="org.apache.catalina.valves.RequestDumperValve"/> -->
    <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
    <Host name="localhost"  appBase="webapps"  unpackWARs="true"
autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
<!-- <Valve className="org.apache.catalina.authenticator.SingleSignOn"
/> -->
<!-- <Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/> -->

      </Host>
    </Engine>
  </Service>
</Server>


2b)TOMCAT1 startup Console

May 30, 2008 1:50:42 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performanc
e in production environments was not found on the java.library.path:
d:\java\jdk
163\bin;.;C:\WINNT\Sun\Java\bin;C:\WINNT\system32;C:\WINNT;C:\Program
Files\PC C
onnectivity
Solution\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;e:\oracl
e\ora92\bin;D:/JAVA/JDK142/bin;d:/java/ANT/bin;C:\IMGEDIT\GTK\2.0\bin;C:\Apache\
Apache2;C:\MYSQL5\bin
May 30, 2008 1:50:42 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8082
May 30, 2008 1:50:42 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1222 ms
May 30, 2008 1:50:43 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 30, 2008 1:50:43 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.16
May 30, 2008 1:50:43 PM org.apache.catalina.ha.tcp.SimpleTcpCluster start
INFO: Cluster is about to start
May 30, 2008 1:50:43 PM
org.apache.catalina.tribes.transport.ReceiverBase bind
INFO: Receiver Server Socket bound to:/10.10.16.63:4001
May 30, 2008 1:50:43 PM
org.apache.catalina.tribes.membership.McastServiceImpl s
etupSocket
INFO: Setting cluster mcast soTimeout to 500
May 30, 2008 1:50:43 PM
org.apache.catalina.tribes.membership.McastServiceImpl w
aitForMembers
INFO: Sleeping for 1000 milliseconds to establish cluster membership,
start leve
l:4
May 30, 2008 1:50:43 PM org.apache.catalina.ha.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.tribes.membership.MemberImpl[
tcp://{10, 10, 16, 63}:4000,{10, 10, 16, 63},4000, alive=5797,id={-106
-5 78 17
-7 23 75 68 -70 81 -63 -14 97 -103 77 53 }, payload={}, command={},
domain={}, ]

May 30, 2008 1:50:44 PM
org.apache.catalina.tribes.membership.McastServiceImpl w
aitForMembers
INFO: Done sleeping, membership established, start level:4
May 30, 2008 1:50:44 PM
org.apache.catalina.tribes.membership.McastServiceImpl w
aitForMembers
INFO: Sleeping for 1000 milliseconds to establish cluster membership,
start leve
l:8
May 30, 2008 1:50:44 PM org.apache.catalina.tribes.io.BufferPool
getBufferPool
INFO: Created a buffer pool with max size:104857600 bytes of
type:org.apache.cat
alina.tribes.io.BufferPool15Impl
May 30, 2008 1:50:45 PM
org.apache.catalina.tribes.membership.McastServiceImpl w
aitForMembers
INFO: Done sleeping, membership established, start level:8
May 30, 2008 1:50:45 PM org.apache.catalina.ha.deploy.FarmWarDeployer start
SEVERE: FarmWarDeployer can only work as host cluster subelement!
May 30, 2008 1:50:46 PM org.apache.catalina.core.StandardContext
addApplicationL
istener
INFO: The listener "com.xius.common.SessionInvalidator" is already
configured fo
r this context. The duplicate definition has been ignored.
May 30, 2008 1:50:46 PM org.apache.catalina.startup.ContextConfig
validateSecuri
tyRoles
INFO: WARNING: Security role name wifi used in an <auth-constraint>
without bein
g defined in a <security-role>
May 30, 2008 1:50:46 PM org.apache.catalina.ha.session.DeltaManager start
INFO: Register manager  to cluster element Engine with name Catalina
May 30, 2008 1:50:46 PM org.apache.catalina.ha.session.DeltaManager start
INFO: Starting clustering manager at
May 30, 2008 1:50:46 PM org.apache.catalina.ha.session.DeltaManager
getAllCluste
rSessions
WARNING: Manager [localhost#], requesting session state from
org.apache.catalina
.tribes.membership.MemberImpl[tcp://{10, 10, 16, 63}:4000,{10, 10, 16,
63},4000,
 alive=8406,id={-106 -5 78 17 -7 23 75 68 -70 81 -63 -14 97 -103 77 53
}, payloa
d={}, command={}, domain={}, ]. This operation will timeout if no
session state
has been received within 60 seconds.
May 30, 2008 1:50:46 PM org.apache.catalina.ha.session.DeltaManager
waitForSendA
llSessions
INFO: Manager [localhost#]; session state send at 5/30/08 1:50 PM
received in 21
9 ms.
=========== START SERVLET CALLED START ======================
=========== APPLICATION CONTEXT :  ROOT  ============
=========== START SERVLET CALLED END ========================

May 30, 2008 1:50:47 PM
org.apache.catalina.ha.session.JvmRouteBinderValve start

INFO: JvmRouteBinderValve started
May 30, 2008 1:50:47 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8082
May 30, 2008 1:50:47 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8010
May 30, 2008 1:50:47 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/32  config=null
May 30, 2008 1:50:47 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4627 ms


3) workers.properties

workers.java_home=D:/JAVA/JDK163
ps=/
# Define 1 real worker using ajp13
# Each Tomcat Inclusion as a new worker
worker.list=balancer

#LB Config
worker.balancer.type=lb
worker.balancer.method=B
worker.balancer.sticky_session=true
worker.balancer.balanced_workers=node01,node02

worker.node01.type=ajp13
worker.node01.host=10.10.16.63
worker.node01.port=8009
worker.node01.lbfactor=1

worker.node02.type=ajp13
worker.node02.host=10.10.16.63
worker.node02.port=8010
worker.node02.lbfactor=1


4) Apache mod_jk.log TEST CASE for LB

Tomcat A starts up
Tomcat B starts up (Wait that TomcatA start is complete)
Tomcat A receives a request, a session S1 is created.
Tomcat A crashes
Tomcat B not able to process the a request for session S1


[Fri May 30 13:44:25 2008] [1964:2224] [info] jk_ajp_common.c (1347):
(node01) all endpoints are disconnected, detected by connect check (2),
cping (0), send (0)
[Fri May 30 13:44:26 2008] [1964:2224] [info] jk_connect.c (566):
connect to 10.10.16.63:8009 failed (errno=61)
[Fri May 30 13:44:26 2008] [1964:2224] [info] jk_ajp_common.c (869):
Failed opening socket to (10.10.16.63:8009) (errno=61)
[Fri May 30 13:44:26 2008] [1964:2224] [error] jk_ajp_common.c (1359):
(node01) connecting to backend failed. Tomcat is probably not started or
is listening on the wrong port (errno=61)
[Fri May 30 13:44:26 2008] [1964:2224] [info] jk_ajp_common.c (2186):
(node01) sending request to tomcat failed (recoverable), because of
error during request sending (attempt=1)
[Fri May 30 13:44:27 2008] [1964:2224] [info] jk_connect.c (566):
connect to 10.10.16.63:8009 failed (errno=61)
[Fri May 30 13:44:27 2008] [1964:2224] [info] jk_ajp_common.c (869):
Failed opening socket to (10.10.16.63:8009) (errno=61)
[Fri May 30 13:44:27 2008] [1964:2224] [error] jk_ajp_common.c (1359):
(node01) connecting to backend failed. Tomcat is probably not started or
is listening on the wrong port (errno=61)
[Fri May 30 13:44:27 2008] [1964:2224] [info] jk_ajp_common.c (2186):
(node01) sending request to tomcat failed (recoverable), because of
error during request sending (attempt=2)
[Fri May 30 13:44:27 2008] [1964:2224] [error] jk_ajp_common.c (2204):
(node01) Connecting to tomcat failed. Tomcat is probably not started or
is listening on the wrong port
[Fri May 30 13:44:27 2008] [1964:2224] [info] jk_lb_worker.c (1168):
service failed, worker node01 is in error state
[Fri May 30 13:44:28 2008] balancer 10.10.16.63 2.937500
[Fri May 30 13:44:31 2008] balancer 10.10.16.63 0.046875
[Fri May 30 13:44:31 2008] balancer 10.10.16.63 0.062500


5) Apache mod_jk.log TEST CASE for LB

Tomcat B starts up
Tomcat A starts up (Wait that Tomcat B start is complete)
Tomcat B receives a request, a session S1 is created.
Tomcat B crashes
Tomcat A not able to process the a request for session S1


[Fri May 30 13:48:58 2008] [860:2176] [info] jk_ajp_common.c (1347):
(node02) all endpoints are disconnected, detected by connect check (2),
cping (0), send (0)
[Fri May 30 13:48:59 2008] [860:2176] [info] jk_connect.c (566): connect
to 10.10.16.63:8010 failed (errno=61)
[Fri May 30 13:48:59 2008] [860:2176] [info] jk_ajp_common.c (869):
Failed opening socket to (10.10.16.63:8010) (errno=61)
[Fri May 30 13:48:59 2008] [860:2176] [error] jk_ajp_common.c (1359):
(node02) connecting to backend failed. Tomcat is probably not started or
is listening on the wrong port (errno=61)
[Fri May 30 13:48:59 2008] [860:2176] [info] jk_ajp_common.c (2186):
(node02) sending request to tomcat failed (recoverable), because of
error during request sending (attempt=1)
[Fri May 30 13:49:00 2008] [860:2176] [info] jk_connect.c (566): connect
to 10.10.16.63:8010 failed (errno=61)
[Fri May 30 13:49:00 2008] [860:2176] [info] jk_ajp_common.c (869):
Failed opening socket to (10.10.16.63:8010) (errno=61)
[Fri May 30 13:49:00 2008] [860:2176] [error] jk_ajp_common.c (1359):
(node02) connecting to backend failed. Tomcat is probably not started or
is listening on the wrong port (errno=61)
[Fri May 30 13:49:00 2008] [860:2176] [info] jk_ajp_common.c (2186):
(node02) sending request to tomcat failed (recoverable), because of
error during request sending (attempt=2)
[Fri May 30 13:49:00 2008] [860:2176] [error] jk_ajp_common.c (2204):
(node02) Connecting to tomcat failed. Tomcat is probably not started or
is listening on the wrong port
[Fri May 30 13:49:00 2008] [860:2176] [info] jk_lb_worker.c (1168):
service failed, worker node02 is in error state
[Fri May 30 13:49:00 2008] balancer 10.10.16.63 2.421875
[Fri May 30 13:49:04 2008] balancer 10.10.16.63 0.062500
[Fri May 30 13:49:04 2008] balancer 10.10.16.63 0.171875
[Fri May 30 13:49:04 2008] balancer 10.10.16.63 0.000000



with regards
Karthik



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

.



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to