9 Replies Latest reply on Jun 15, 2010 9:23 PM by Nikolay Elenkov

    Seam application crash under load

    Francis Drake Newbie

         I am trying to find what is wrong with my application for few days but I am out of ideas. It works fine, until heavy load comes. Well, actually is dealing fine with that load for some time. Then it slows down and finally becomes almost not accessible.

      I checked database connections, not the problem of any query. I suffer a lot because of jboss cache - when it crashes I can see in jmx-console over 10k attributes...

      Below few examples from thread dump, also from moment of slowness:

      (this one appears many times in the dump):

      Thread: ajp- : priority:5, demon:true, threadId:170, threadState:BLOCKED- waiting on <0x70e5a93e> (a java.util.WeakHashMap)

      Thread: Thread-52796 : priority:5, demon:true, threadId:56143, threadState:TIMED_WAITING- waiting on <0x1ecf9c96> (a java.util.concurrent.SynchronousQueue$TransferStack)
      sun.misc.Unsafe.park(Native Method)java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:424)java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:323)

      Thanks for any tips,