Number of active Sessions in Clustered server environment

Discussions

General J2EE: Number of active Sessions in Clustered server environment

  1. Hi,

    We have our application running on two different WebSphere application servers. We need to count number of active sessions at any given point in time.

    How can count for both the servers,since we are not sure when user logs in where he will be redirected thru big IP.
    (suppose we have singleton)...Or is there any better solution

    Thanks
    Venkatesh
  2. Venkatesh,

    With WebSphere, that's relatively hard, although in version 5 there is some support for sessions with multiple JVMs running WebSphere.

    What version of WebSphere are you running?

    If you do have to share data between WebSphere JVMs, use Tangosol Coherence.

    Peace,

    Cameron Purdy
    Tangosol, Inc.
    Coherence: Easily share live data across a cluster!
  3. Cameron,

    We are currently using websphere 4.0.5 , how can it be done thru 5.0 ? meaning one JVM can talk to other JVM ?? we don't have any EJB clusting, Its just multiple web and app servers.

    How can your product be helpful. Can you give insight?

    Thanks
    Venkatesh.
  4. We are currently using websphere 4.0.5

    To run an application across multiple WebSphere 4 instances ("clones") you have a couple of choices:

    1. You can store the sessions in a database. This is pretty slow and bogs down the database quickly if the app is under load.

    2. You can use the WebSphere 4 plug-in from Tangosol to do clustered HTTP sessions. With this approach, you could access the count (and other details) of all sessions in the cluster.

    how can it be done thru 5.0 ?

    For WebSphere 5, you have the same choices, plus one more: IBM has a built-in session backup scheme in WebSphere 5 that is based on JMS ("gryphon"?). I don't have any details on it.

    meaning one JVM can talk to other JVM ??

    That's what our Coherence product does.

    we don't have any EJB clusting, Its just multiple web and app servers.
    How can your product be helpful. Can you give insight?


    Sure. Each server could update a shared count of sessions. That data can be shared in a cluster by placing it into a clustered cache.

    For help putting together an example, email support at tangosol dot com.

    Peace,

    Cameron Purdy
    Tangosol, Inc.
    Coherence: Easily share live data across a cluster!