Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-4682

Web session passivation does very little with FIELD granularity

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • JBossAS-5.0.0.Beta2
    • None

      Passivation of clustered HttpSessions works by evicting the node tree representing a given session from the cache. Configuration is based on defining how many active (in-memory) sesssion are allowed and how old they can be before passivating them. Problem is, with FIELD replication, the bulk of the data associated with a session is not in that sessions's subtree; it's in the JBossInternal area. Evicting the session's tree doesn't free up the memory associated with the POJOs.

      Structure of data in JBC:

      /JSESSION
      +++ /localhost
      ++++++/webapp
      +++++++++/session12345
      +++++++++/session67890
      +++++++++/JBossInternal
      ++++++++++++/pojoAAAAA
      ++++++++++++/pojoBBBBB

      (Note: session passivation is not done using the regular JBC eviction algorithms, as JBC doesn't understand what a "session" is. The http session replication layer manages the passivation, just using the JBC evict() method to do the actual passivation.)

              bstansbe@redhat.com Brian Stansberry
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: