tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Imad Hachem" <IHac...@lb.path-solutions.com>
Subject RE: MISC; Tomcat Cluster Sesssion ID changing after one Node Failure
Date Fri, 23 Oct 2009 13:25:51 GMT
Dear Mikel,

Session id (session.getId()) is as the below FORMAT if I am connected to
the 1st Tomcat node:

For ex: session.getId() = "0B187109595EBEA79772416BFAE43F77.tomcat1"

After stopping/shutdown of the 1st Tomcat Node, then I should get the
same session id but instead of the "tomcat1" node the "tomcat2" node,
but in fact I am getting a complete session ID as below:

After Shutdown: 
session.getId() = " 8a4dbc2db0cb4f86c097705461657097.tomcat2"




Please find attached server.xml configuration for more details for the
1st Tomcat node:

<Engine name="Catalina" defaultHost="localhost" jvmRoute="tomcat1">

        <Cluster
className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
 
managerClassName="org.apache.catalina.cluster.session.DeltaManager"
                 expireSessionsOnShutdown="false"
                 useDirtyFlag="true"
                 notifyListenersOnReplication="true">

            <Membership 
 
className="org.apache.catalina.cluster.mcast.McastService"
                mcastAddr="228.0.0.4"
                mcastPort="45564"
                mcastFrequency="500"
                mcastDropTime="3000"/>

            <Receiver 
 
className="org.apache.catalina.cluster.tcp.ReplicationListener"
                tcpListenAddress="auto"
                tcpListenPort="4001"
                tcpSelectorTimeout="100"
                tcpThreadCount="6"/>

            <Sender
 
className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
                replicationMode="pooled"
                ackTimeout="15000"/>


                  
                   
            <Valve
className="org.apache.catalina.cluster.tcp.ReplicationValve"
 
filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;
"/>
                   
                   
                   
                   
            <Deployer
className="org.apache.catalina.cluster.deploy.FarmWarDeployer"
                      tempDir="/tmp/war-temp/"
                      deployDir="/tmp/war-deploy/"
                      watchDir="/tmp/war-listen/"
                      watchEnabled="false"/>
                      
         <ClusterListener
className="org.apache.catalina.cluster.session.ClusterSessionListener"/>

            
        </Cluster>


Any additional configuration to be done?



Imad Hachem | Asst.Product Development Manager
e-Banking Department
Path Solutions
Tel: +961 1 697444 ext. 222
Fax: +961 1 696744
www.path-solutions.com



Disclaimer
[The information contained in this e-mail message and any attached files
are confidential information and intended solely for the use of the
individual or entity to whom they are addressed. This transmission may
contain information that is privileged, confidential or exempt from
disclosure under applicable law. If you have received this e-mail in
error, please notify the sender immediately and delete all copies. If
you are not the intended recipient, any disclosure, copying,
distribution, or use of the information contained herein is STRICTLY
PROHIBITED. Path Solutions accepts no responsibility for any errors,
omissions, computer viruses and other defects.]
 
 
 
-----Original Message-----
From: Mikel Ibiricu [mailto:jlumietu@gmail.com] 
Sent: Friday, October 23, 2009 3:35 PM
To: Tomcat Users List
Subject: Re: MISC; Tomcat Cluster Sesssion ID changing after one Node
Failure

No, this listener is called even if you don't explicitly call it, except
in
case you use another ClusterListener.

What do you mean with "The Session ID is changin"? What part of the
jsessionid is changing?

Could you paste your cluster configuration section on your server.xml?



2009/10/23 Imad Hachem <IHachem@lb.path-solutions.com>

> Dear Mikel,
>
> Thanks for your Reply.
>
> Actually I am not using the below tags you have mentioned, but I have
> the below tag:
>
> <ClusterListener
>
className="org.apache.catalina.cluster.session.ClusterSessionListener"/>
>
> Could be the Problem?
>
> If No, note that at each Node failover, I am getting the below error
in
> Tomcat Catalina.log:
>
>
> INFO: Deploying web application archive LoadBalanceTest.war
> Oct 21, 2009 5:16:39 PM org.apache.coyote.http11.Http11BaseProtocol
> start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> Oct 21, 2009 5:16:39 PM org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> Oct 21, 2009 5:16:39 PM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/31  config=null
> Oct 21, 2009 5:16:39 PM org.apache.catalina.storeconfig.StoreLoader
load
> INFO: Find registry server-registry.xml at classpath resource
> Oct 21, 2009 5:16:39 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 12625 ms
> Oct 21, 2009 5:17:27 PM org.apache.coyote.http11.Http11BaseProtocol
> pause
> INFO: Pausing Coyote HTTP/1.1 on http-8080
> Oct 21, 2009 5:17:28 PM org.apache.catalina.core.StandardService stop
> INFO: Stopping service Catalina
> Oct 21, 2009 5:17:28 PM
> org.apache.catalina.cluster.deploy.FarmWarDeployer stop
> INFO: Cluster FarmWarDeployer stopped.
> Oct 21, 2009 5:17:28 PM
> org.apache.catalina.cluster.tcp.ReplicationTransmitter stop
> INFO: Stopped ClusterSender at cluster
> Catalina:type=Cluster,host=localhost with name
> Catalina:type=ClusterSender,host=localhost
> Oct 21, 2009 5:17:28 PM
> org.apache.catalina.cluster.tcp.ReplicationListener listen
> SEVERE: Unable to process request in ReplicationListener
> java.nio.channels.ClosedSelectorException
>        at
sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:66)
>        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
>        at
>
org.apache.catalina.cluster.tcp.ReplicationListener.listen(ReplicationLi
> stener.java:130)
>        at
>
org.apache.catalina.cluster.tcp.ClusterReceiverBase.run(ClusterReceiverB
> ase.java:394)
>        at java.lang.Thread.run(Thread.java:595)
> Oct 21, 2009 5:17:28 PM
> org.apache.catalina.cluster.tcp.ReplicationListener listen
> SEVERE: Unable to process request in ReplicationListener
> java.nio.channels.ClosedSelectorException
>        at
sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:66)
>        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
>        at
>
org.apache.catalina.cluster.tcp.ReplicationListener.listen(ReplicationLi
> stener.java:130)
>        at
>
org.apache.catalina.cluster.tcp.ClusterReceiverBase.run(ClusterReceiverB
> ase.java:394)
>        at java.lang.Thread.run(Thread.java:595)
>
>
> Can this help?
>
>
>
> Imad Hachem | Asst.Product Development Manager
> e-Banking Department
> Path Solutions
> Tel: +961 1 697444 ext. 222
> Fax: +961 1 696744
> www.path-solutions.com
>
>
>
> Disclaimer
> [The information contained in this e-mail message and any attached
files
> are confidential information and intended solely for the use of the
> individual or entity to whom they are addressed. This transmission may
> contain information that is privileged, confidential or exempt from
> disclosure under applicable law. If you have received this e-mail in
> error, please notify the sender immediately and delete all copies. If
> you are not the intended recipient, any disclosure, copying,
> distribution, or use of the information contained herein is STRICTLY
> PROHIBITED. Path Solutions accepts no responsibility for any errors,
> omissions, computer viruses and other defects.]
>
>
>
> -----Original Message-----
> From: Mikel Ibiricu [mailto:jlumietu@gmail.com]
> Sent: Thursday, October 22, 2009 5:33 PM
> To: Tomcat Users List
> Subject: Re: MISC; Tomcat Cluster Sesssion ID changing after one Node
> Failure
>
> Hi
>
> If the issue is that the jvmroute sufix of the JSESSIONID is changing,
> maybe
> the reason is that you have enabled the JvmRouteBinderValve. (
> http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html, *Bind
> session
> after crash to failover node*)
>
> If you've got theese lines inside your cluster configuration, try
> deleting
> them.
>
> <Valve
> className="org.apache.catalina.cluster.session.JvmRouteBinderValve"
> enabled="true" sessionIdAttribute="takeoverSessionid"/>
> <ClusterListener
>
className="org.apache.catalina.cluster.session.JvmRouteSessionIDBinderLi
> stener"
> />
>
> Mikel
>
> 2009/10/21 Imad Hachem <IHachem@lb.path-solutions.com>
>
> > Dear Team,
> >
> >
> >
> > I am facing an issue in Tomcat 5.5.12  Cluster after one node
Failure
> or
> > shutdown:
> >
> >
> >
> > The Session ID is changing, is there any configuration to keep the
> same
> > session ID?
> >
> >
> >
> > Kindly help.
> >
> >
> >
> >
> >
> >
> >
> > Imad Hachem | Asst.Product Development Manager
> >
> > e-Banking Department
> >
> > Path Solutions
> >
> > Tel: +961 1 697444 ext. 222
> >
> > Fax: +961 1 696744
> >
> > www.path-solutions.com <http://www.path-solutions.com>
> >
> >
> >
> >
> > Disclaimer
> > [The information contained in this e-mail message and any attached
> files
> > are confidential information and intended solely for the use of the
> > individual or entity to whom they are addressed. This transmission
may
> > contain information that is privileged, confidential or exempt from
> > disclosure under applicable law. If you have received this e-mail in
> > error, please notify the sender immediately and delete all copies.
If
> > you are not the intended recipient, any disclosure, copying,
> > distribution, or use of the information contained herein is STRICTLY
> > PROHIBITED. Path Solutions accepts no responsibility for any errors,
> > omissions, computer viruses and other defects.]
> >
> >
> >
> >
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message