tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "rohit aman" <rohitam...@gmail.com>
Subject Re: tomcat 6.0.18 clustering.. session getting replicated partially
Date Tue, 25 Nov 2008 16:22:37 GMT
Hi Bhoosan,

   I am using sticky session setup at LB. What do you mean by "use
replicated sessions"? I dont have that kind of configuration setup at my LB.


As far as I know, whatever the configuration at LB is, when cluster
configuration (in server.xml) is correct, session replication should be done
no matter what the LB is setup for.

Thanks
Rohit

On Mon, Nov 24, 2008 at 11:08 PM, Bhooshan Pandit <bhooshanpandit@aol.com>wrote:

> Why don't you use replicated sessions? I believe with sticky sessions the
> session data does not get copied over to other servers in the LB setup, with
> replicated session it does.
>
> -----Original Message-----
> From: rohit aman <rohitaman0@gmail.com>
> To: Tomcat Users List <users@tomcat.apache.org>
> Sent: Tue, 25 Nov 2008 6:57 am
> Subject: tomcat 6.0.18 clustering.. session getting replicated partially
>
>
>
>
>
>
>
>
> Hi,
>
>   I had setup a tomcat cluster with two nodes. followed the instructions
> from "tomcat 6 clustering how to" document. I created a sample
> application to test out my cluster.  This application has a cart where u
> can
> add items.
>
> now, the problem is, not all session variables are getting replicated.
> below
> is the scenario..
>
> 1)start tomcat 1
> 2)access the cart add items to it ( lets say added 5 items )
> 3)start tomcat 2
> 4)add some more items ( 3 more...so totally 8) ( this is done using tomcat
> 1
> again because my LB is configured for sticky sessions)
> 5)stop tomcat 1
> 6)access the cart (now the request goes to tomcat 2)...here *I can only see
> the first 5 items where as it should be 8. *So, the next three did not get
> replicated.
>
> whichever session or session attribute gets created when both nodes are
> running is not getting replicated for some reason.
>
> I am monitoring both nodes with Jconsole. In Jconsole the number of session
> for the application =  sessions in node 1 + sessions in node 2. So, this
> says that sessions are being replicated. But, I am not sure why I am not
> able to access all sessions/sessionAttributes.
>
> Any help is very much appreciated.
>
> Thanks
> Rohit
>
>
>
>
>
>
>
>
>
> ________________________________________________________________________
> You are invited to Get a Free AOL Email ID. - http://webmail.aol.in
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message