Hi, hopefully somebody can help me out with this issue I detected a few days ago:
I have two JBoss EAP 6.1 (compiled from source) instances in a domain cluster, each JBoss instance has its own infinispan remote-store storing http sessions. The infinispan server is running in the same machine for each JBoss instance, so there are two JBoss and two infinispan instances. There is no session replication in place, the caches are local. Session storage is working correctly, the problem is that the embedded infinispan is slowly using up all available memory, because the evicted/passivated session entries are not being removed from memory. After a full GC, I can see the number of org.jboss.as.web.session.SessionBasedClusteredSession instances closely matching the sum of numberOfEntries plus passivations as reported by jmx statistics. I hope I have some configuration problem, I have tried everything and I haven't been able to change this behavior.
My web cache container configuration is:
<cache-container name="web" aliases="standard-session-cache" default-cache="remote" module="org.jboss.as.clustering.web.infinispan"> <transport lock-timeout="60000"/> <local-cache name="remote" batching="true"> <eviction strategy="LIRS" max-entries="20000"/> <expiration max-idle="172800000" interval="60000"/> <remote-store cache="remote" shared="false" passivation="true" purge="false"> <remote-server outbound-socket-binding="session-binding"/> </remote-store> </local-cache> </cache-container>
At the infinispan server side:
<cache-container name="web" default-cache="remote"> <local-cache name="remote" start="EAGER"> <locking isolation="NONE" acquire-timeout="30000" concurrency-level="500" striping="false"/> <transaction mode="NONE"/> </local-cache> </cache-container>
I have tried enabling/disabling passivation and the entries are not removed from memory in any case.
Currently I'm using:
JBoss EAP 6.1 compiled with Oracle HotSpot 1.6.0_45-b06 64-bit (Embedded Infinispan 5.2.6)
Infinispan server 5.3.0
I have tried running the JBoss server with 64-bit HotSpot 22.214.171.124 and Jrockit 126.96.36.199-R28-2.7.
CentOS 6.4 64-bit
I hope someone can help me, this has been driving me crazy and I still don't know if this is the expected behavior or I'm doing something wrong.
Thanks in advance.