Skip to main content

Glassfish 2.1 cluster session replication error

No replies
ph99
Offline
Joined: 2012-09-10
Points: 0

Hi
I've this configuration
2 cluster node with Glassfish 2.1
web app RichFaces 3.3.3
JAVAEE application EJB3

my sun-web.xml config:

 <session-config>

  <session-manager persistence-type="replicated">
    <manager-properties>
      <property name="persistenceFrequency" value="web-method" />
<property name="relaxCacheVersionSemantics" value="true"/>
        <property name="enableCookies" value="false" />
    </manager-properties>
    <store-properties>
      <property name="persistenceScope" value="session" />
    </store-properties>
  </session-manager>
</session-config>

Cluster test are ok.
Stress test are ok.

but..
Sometimes suddenly application becomes extremely slow.
one node's server.log raises these exceptions:

IOException sending message
java.io.IOException: Messenger was closed, it cannot be used to send messages.

and after about two minutes
Group:cluster:java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
and it stop responding until we restart GF.

Maybe a wrong configuration?
Is it caused by ajax framework?

Help!!!!!
Thanks.