1 Reply Latest reply on Dec 4, 2003 3:27 PM by Paul Wilt

    3.2.1 Passivation Problem

    Paul Wilt Newbie

      We just recently began some soak testing of our JBoss application. In the last two runs of this soak test we have had three separate machines get into a hung state. Each of those machines end up hung in the same method AbstractInstanceCache.tryToPassivate(). The following thread dump shows the call stack of the stuck thread. Looking at the code for BeanLockSupport.sync() it seems as though the only way this thread can get hung here is if another thread already had entered the sync() method previously.

      Has any one seen any thing similar to this problem?
      This certainly looks like it could be a JBoss bug!

      "Thread-46" daemon prio=1 tid=0x6d98f3c8 nid=0x1598 in Object.wait() [b5dff000..b5dff908]
      at java.lang.Object.wait(Native Method)
      - waiting on <0x4a8a9ae0> (a org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock)
      at java.lang.Object.wait(Object.java:429)
      at org.jboss.ejb.plugins.lock.BeanLockSupport.sync(BeanLockSupport.java:70)
      - locked <0x4a8a9ae0> (a org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock)
      at org.jboss.ejb.plugins.AbstractInstanceCache.tryToPassivate(AbstractInstanceCache.java:151)
      at org.jboss.ejb.plugins.AbstractInstanceCache.release(AbstractInstanceCache.java:192)
      at org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy.ageOut(LRUEnterpriseContextCachePolicy.java:274)
      at org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy$OveragerTask.kickOut(LRUEnterpriseContextCachePolicy.java:446)
      at org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy$OveragerTask.run(LRUEnterpriseContextCachePolicy.java:405)
      - locked <0x45910820> (a java.lang.Object)
      at java.util.TimerThread.mainLoop(Timer.java:432)
      at java.util.TimerThread.run(Timer.java:382)

        • 1. Re: 3.2.1 Passivation Problem
          Paul Wilt Newbie

          Hey y'all--someone could have told me that this bug is fixed in JBoss-3_2_2. Went on a merry chase through the source code and found out that someone figured a way to get around this deadlock (See changes to LRUEnterpriseContextCachePolicy.java)! Would have been nice if someone had replied to my question!