2 Replies Latest reply: Apr 15, 2014 4:36 AM by Mr.D. RSS

    Glassfish & APEX problem/question

    Mr.D.

      Hi,

      i've a server RedHat which installed glassfish 4.0 and apex listener 2.0.4

      Sometimes glassfish cause memory leak.

       

      Using jstack i've captured thread dump of glassfish 1 hour later after restart.

       

      These are some lines:

       

      Attaching to process ID 10071, please wait...

      Debugger attached successfully.

      Server compiler detected.

      JVM version is 24.51-b03

      Deadlock Detection:

       

      No deadlocks found.

       

      Thread 614: (state = BLOCKED)

      - sun.misc.Unsafe.park(boolean, long) @bci=0 (Compiled frame; information may be imprecise)

      - java.util.concurrent.locks.LockSupport.parkNanos(java.lang.Object, long) @bci=20, line=226 (Interpreted frame)

      - java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(java.util.concurrent.SynchronousQueue$TransferStack$SNode, boolean, long) @bci=174, line=460 (Interpreted frame)

      - java.util.concurrent.SynchronousQueue$TransferStack.transfer(java.lang.Object, boolean, long) @bci=102, line=359 (Interpreted frame)

      - java.util.concurrent.SynchronousQueue.poll(long, java.util.concurrent.TimeUnit) @bci=11, line=942 (Interpreted frame)

      - java.util.concurrent.ThreadPoolExecutor.getTask() @bci=141, line=1068 (Compiled frame)

      - java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) @bci=26, line=1130 (Compiled frame)

      - java.util.concurrent.ThreadPoolExecutor$Worker.run() @bci=5, line=615 (Interpreted frame)

      - java.lang.Thread.run() @bci=11, line=744 (Interpreted frame)

       

       

      Thread 30303: (state = BLOCKED)

      - java.lang.Object.wait(long) @bci=0 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.SyncThreadPool$SyncThreadWorker.getTask() @bci=180, line=200 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork() @bci=10, line=556 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run() @bci=9, line=544 (Interpreted frame)

      - java.lang.Thread.run() @bci=11, line=744 (Interpreted frame)

       

       

      Thread 30302: (state = BLOCKED)

      - java.lang.Object.wait(long) @bci=0 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.SyncThreadPool$SyncThreadWorker.getTask() @bci=180, line=200 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork() @bci=10, line=556 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run() @bci=9, line=544 (Interpreted frame)

      - java.lang.Thread.run() @bci=11, line=744 (Interpreted frame)

       

       

      Thread 30301: (state = BLOCKED)

      - java.lang.Object.wait(long) @bci=0 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.SyncThreadPool$SyncThreadWorker.getTask() @bci=180, line=200 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork() @bci=10, line=556 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run() @bci=9, line=544 (Interpreted frame)

      - java.lang.Thread.run() @bci=11, line=744 (Interpreted frame)

       

       

      Thread 30300: (state = BLOCKED)

      - java.lang.Object.wait(long) @bci=0 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.SyncThreadPool$SyncThreadWorker.getTask() @bci=180, line=200 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork() @bci=10, line=556 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run() @bci=9, line=544 (Interpreted frame)

      - java.lang.Thread.run() @bci=11, line=744 (Interpreted frame)

       

       

      Thread 30299: (state = BLOCKED)

      - java.lang.Object.wait(long) @bci=0 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.SyncThreadPool$SyncThreadWorker.getTask() @bci=180, line=200 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork() @bci=10, line=556 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run() @bci=9, line=544 (Interpreted frame)

      - java.lang.Thread.run() @bci=11, line=744 (Interpreted frame)

       

       

      Thread 30298: (state = BLOCKED)

      - java.lang.Object.wait(long) @bci=0 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.SyncThreadPool$SyncThreadWorker.getTask() @bci=180, line=200 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork() @bci=10, line=556 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run() @bci=9, line=544 (Interpreted frame)

      - java.lang.Thread.run() @bci=11, line=744 (Interpreted frame)

       

       

      Thread 30297: (state = BLOCKED)

      - java.lang.Object.wait(long) @bci=0 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.SyncThreadPool$SyncThreadWorker.getTask() @bci=180, line=200 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork() @bci=10, line=556 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run() @bci=9, line=544 (Interpreted frame)

      - java.lang.Thread.run() @bci=11, line=744 (Interpreted frame)

       

       

      Thread 30296: (state = BLOCKED)

      - java.lang.Object.wait(long) @bci=0 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.SyncThreadPool$SyncThreadWorker.getTask() @bci=180, line=200 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork() @bci=10, line=556 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run() @bci=9, line=544 (Interpreted frame)

      - java.lang.Thread.run() @bci=11, line=744 (Interpreted frame)

       

       

      Thread 30295: (state = BLOCKED)

      - java.lang.Object.wait(long) @bci=0 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.SyncThreadPool$SyncThreadWorker.getTask() @bci=180, line=200 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork() @bci=10, line=556 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run() @bci=9, line=544 (Interpreted frame)

      - java.lang.Thread.run() @bci=11, line=744 (Interpreted frame)

       

       

      Thread 30294: (state = BLOCKED)

      - java.lang.Object.wait(long) @bci=0 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.SyncThreadPool$SyncThreadWorker.getTask() @bci=180, line=200 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork() @bci=10, line=556 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run() @bci=9, line=544 (Interpreted frame)

      - java.lang.Thread.run() @bci=11, line=744 (Interpreted frame)

       

       

      Thread 30293: (state = BLOCKED)

      - java.lang.Object.wait(long) @bci=0 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.SyncThreadPool$SyncThreadWorker.getTask() @bci=180, line=200 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork() @bci=10, line=556 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run() @bci=9, line=544 (Interpreted frame)

      - java.lang.Thread.run() @bci=11, line=744 (Interpreted frame)

       

       

      Thread 30292: (state = BLOCKED)

      - java.lang.Object.wait(long) @bci=0 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.SyncThreadPool$SyncThreadWorker.getTask() @bci=180, line=200 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork() @bci=10, line=556 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run() @bci=9, line=544 (Interpreted frame)

      - java.lang.Thread.run() @bci=11, line=744 (Interpreted frame)

       

       

      Thread 30173: (state = BLOCKED)

      - java.lang.Object.wait(long) @bci=0 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.SyncThreadPool$SyncThreadWorker.getTask() @bci=180, line=200 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork() @bci=10, line=556 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run() @bci=9, line=544 (Interpreted frame)

      - java.lang.Thread.run() @bci=11, line=744 (Interpreted frame)

       

       

      Thread 30171: (state = BLOCKED)

      - java.lang.Object.wait(long) @bci=0 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.SyncThreadPool$SyncThreadWorker.getTask() @bci=180, line=200 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork() @bci=10, line=556 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run() @bci=9, line=544 (Interpreted frame)

      - java.lang.Thread.run() @bci=11, line=744 (Interpreted frame)

       

       

      Thread 30170: (state = BLOCKED)

      - java.lang.Object.wait(long) @bci=0 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.SyncThreadPool$SyncThreadWorker.getTask() @bci=180, line=200 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork() @bci=10, line=556 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run() @bci=9, line=544 (Interpreted frame)

      - java.lang.Thread.run() @bci=11, line=744 (Interpreted frame)

       

       

      Thread 30169: (state = BLOCKED)

      - java.lang.Object.wait(long) @bci=0 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.SyncThreadPool$SyncThreadWorker.getTask() @bci=180, line=200 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork() @bci=10, line=556 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run() @bci=9, line=544 (Interpreted frame)

      - java.lang.Thread.run() @bci=11, line=744 (Interpreted frame)

       

       

      Thread 30168: (state = BLOCKED)

      - java.lang.Object.wait(long) @bci=0 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.SyncThreadPool$SyncThreadWorker.getTask() @bci=180, line=200 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork() @bci=10, line=556 (Interpreted frame)

      - org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run() @bci=9, line=544 (Interpreted frame)

      - java.lang.Thread.run() @bci=11, line=744 (Interpreted frame)


      ... and many others

       

       

      Is APEX application that cause this problems or is glassfish?

       

      Thank you.