Clustering + Session sharing lock acquisition errors
splaer Feb 2, 2011 11:25 AMI seem to be having some issues with clustering jboss 6 and being able to share sessions consistently.
Now im very new to jboss and clustering so I may be missing something simple.
My Setup:
Server 1=
Apache 2.2.15
Mod_Cluster 1.1
Server 2=
Two Jboss AS 6 nodes setup for clustering
jdk1.6u23
Sticky Sessions are disabled
App is marked as Distributable in web.xml
cluster startup:
[STDOUT]
10:51:25,828 INFO [STDOUT] -------------------------------------------------------------------
10:51:25,828 INFO [STDOUT] GMS: address=10.100.20.102:1099, cluster=DefaultPartition-HAPartition, physical address=10.100.20.102:55200
10:51:25,829 INFO [STDOUT] -------------------------------------------------------------------
10:51:26,049 INFO [JGroupsTransport] Received new cluster view: [10.100.20.103:1099|3] [10.100.20.103:1099, 10.100.20.102:1099]
10:51:26,065 INFO [JGroupsTransport] Cache local address is 10.100.20.102:1099, physical addresses are [10.100.20.102:55200]
10:51:26,066 INFO [GlobalComponentRegistry] Infinispan version: Infinispan 'Ursus' 4.2.0.FINAL
10:51:26,106 INFO [ComponentsJmxRegistration] Could not register object with name: org.infinispan:type=Cache,name="distributed-state(repl_sync)",manager="ha-partition",component=Cache
10:51:26,107 INFO [CacheJmxRegistration] MBeans were successfully registered to the platform mbean server.
10:51:26,107 INFO [RpcManagerImpl] Trying to fetch state from 10.100.20.103:1099
10:51:26,296 INFO [RpcManagerImpl] Successfully retrieved and applied state from 10.100.20.103:1099
10:51:26,300 INFO [ComponentRegistry] Infinispan version: Infinispan 'Ursus' 4.2.0.FINAL
10:51:26,308 INFO [DefaultCacheContainerFactory] Started "distributed-state" cache from "ha-partition" container
10:51:26,342 INFO [DefaultPartition] Number of cluster members: 2
10:51:26,344 INFO [DefaultPartition] Fetching initial service state (will wait for 30000 milliseconds for each service):
10:51:26,544 INFO [HANamingService] Started HAJNDI bootstrap; jnpPort=1100, backlog=50, bindAddress=/10.100.20.102
10:51:26,557 INFO [DetachedHANamingService$AutomaticDiscovery] Listening on /10.100.20.102:1102, group=230.0.0.4, HA-JNDI address=10.100.20.102:1100
10:51:26,571 INFO [TransactionManagerFactory] Using a batchMode transaction manager
10:51:26,595 INFO [ComponentsJmxRegistration] Could not register object with name: org.infinispan:type=Cache,name="distributed-tree(repl_sync)",manager="ha-partition",component=Cache
10:51:26,595 INFO [CacheJmxRegistration] MBeans were successfully registered to the platform mbean server.
10:51:26,595 INFO [RpcManagerImpl] Trying to fetch state from 10.100.20.103:1099
10:51:26,610 INFO [RpcManagerImpl] Successfully retrieved and applied state from 10.100.20.103:1099
10:51:26,616 INFO [ComponentRegistry] Infinispan version: Infinispan 'Ursus' 4.2.0.FINAL
10:51:26,616 INFO [DefaultCacheContainerFactory] Started "distributed-tree" cache from "ha-partition" container
The server starts up fine and the cluster gets created and mod_cluster connects fine and their able to share session information between them. They alternate by request ajax calls and share the logon session just fine. After awhile of moving around in the app though i begin to get session lock errors only on one node. see below:
2011-02-02 10:48:00,772 ERROR [org.apache.catalina.connector.CoyoteAdapter] (ajp-10.100.20.102-8009-13) An exception or error occurred in the container during the request processing: java.l
ang.RuntimeException: Caught TimeoutException acquiring ownership of XOEYDujTwfqNjbduMUMMMQ__
at org.jboss.web.tomcat.service.session.ClusteredSession.acquireSessionOwnership(ClusteredSession.java:603) [:6.0.0.Final]
at org.jboss.web.tomcat.service.session.ClusteredSession.access(ClusteredSession.java:566) [:6.0.0.Final]
at org.apache.catalina.connector.Request.doGetSession(Request.java:2565) [:6.0.0.Final]
at org.apache.catalina.connector.Request.getSession(Request.java:2315) [:6.0.0.Final]
at org.jboss.web.tomcat.service.session.JvmRouteValve.checkJvmRoute(JvmRouteValve.java:95) [:6.0.0.Final]
at org.jboss.web.tomcat.service.session.JvmRouteValve.invoke(JvmRouteValve.java:85) [:6.0.0.Final]
at org.jboss.web.tomcat.service.session.LockingValve.invoke(LockingValve.java:62) [:6.0.0.Final]
at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]
at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.Final]
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.Final]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.Final]
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.Final]
at org.jboss.web.tomcat.service.sso.ClusteredSingleSignOn.invoke(ClusteredSingleSignOn.java:696) [:6.0.0.Final]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.Final]
at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.Final]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.Final]
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:504) [:6.0.0.Final]
at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:437) [:6.0.0.Final]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.Final]
at java.lang.Thread.run(Unknown Source) [:1.6.0_20]
Caused by: org.jboss.ha.framework.server.lock.TimeoutException: Cannot acquire lock //localhost/test/XOEYDujTwfqNjbduMUMMMQ__ from cluster
at org.jboss.ha.framework.server.lock.SharedLocalYieldingClusterLockManager.lock(SharedLocalYieldingClusterLockManager.java:554) [:2.0.0.Final]
at org.jboss.web.tomcat.service.session.distributedcache.ispn.DistributedCacheManager.acquireSessionOwnership(DistributedCacheManager.java:448) [:1.0.0.Final]
at org.jboss.web.tomcat.service.session.ClusteredSession.acquireSessionOwnership(ClusteredSession.java:595) [:6.0.0.Final]
... 21 more
above error causes the entire app to freeze until the node is brought down that is having the session issues....
any help would be greatly appreciated. any logs or configuration files can be provided if needed.
Thanks in advance