users@glassfish.java.net

Re: Glassfish & cluster, When stress test, the sessionid changed, is it a b

From: Joseph Fialli <Joseph.Fialli_at_Sun.COM>
Date: Sun, 11 Nov 2007 11:28:56 -0500

glassfish_at_javadesktop.org wrote:
> Thaks for you reply.
>

> The scene just like this:
> deploy the app to instance in a cluster, set availablity = true.
>
The app should be deployed to all instances in the cluster.
I will assume that step was done correctly.
> In a page, i display the sessionid from server. when refresh the page quickly by IE's or Firefox's toolbar or menu, you'll find that sometimes the sessionid value is changed, sometimes it is unchanged.
>
Your scenario does not describe stopping or killing the instance, so am
I to assume that you are not attempting to verify failover of
http-session data from a failed instance to replicated version of the
sesssion data in the cluster.

If you truely are not testing failover finding replicated data, it would
be interesting to repeat your test w/o availability enabled

> And you may find glassfish's log like:
> the sessionid's Expired is set true, and then the sessionid's Expired is set false.
>
It would assist this effort to submit an issue to glassfish issues with
a server.log recording the issue you are observing
and step by step description of the observed failure. (Be careful to
mention browser and version of browser involved in issue.)

Could you enable FINE debugging for availability following these steps.

Add property com.sun.enterprise.ee.web.sessmgmt to "FINE" Module Log
Level for cluster configuration.
Here are precise steps for clusterjsp example.
Steps to enable:
Setup: In AppServer Admin Console running under a web browser:
(Only have the DAS running, do not start cluster yet.)
1. Select "Clusters" under "Common Tasks" in left pane.
2. For the appropriate cluster listed in right pane of Admin Console,
click on appropriate "Configuration".
3. Right pane for my case has "Configurations > cluster1-config" at this
point.
Select "Logger Settings" from this pane.
4. Select tab named "Log Levels" under "Configurations > cluster1-config
> Logger Settings".
5. Under "Additional Properties" at bottom of tab labeled "Module Log
Levels" (on my browser, I
have to scroll to bottom.),
click [Add Property] button.
- Under "Name" field add:
com.sun.enterprise.ee.web.sessmgmt
- Under "Value" field add:
FINE
6. At top of "Module Log Levels" tab, select [SAVE].
7. When cluster is restarted, the ha in-memory logging level property
will be propagated to each
instance.


-Joe Fialli, Sun Microsystems

> http://forums.java.net/jive/thread.jspa?threadID=32742&tstart=15
> [Message sent by forum member 'hanjingdi' (hanjingdi)]
>
> http://forums.java.net/jive/thread.jspa?messageID=243996
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>