glassfish
  1. glassfish
  2. GLASSFISH-20852

Flood of ehcache threads spawned and in WAITING state

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 3.1.2.2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Solaris x86

      Description

      We found there was a spawning of net.sf.ehcache.CacheManager thread on the server so we restarted glassfish service..

      However, it reproduced after restart..

      At the moment, we have 3,716 threads running in gfish JVM (3,680 of them are daemon threads)..

      3,514 of those threads are spawned by ehcache and they are all in WAITING state, please see a segment of JVM report below:

      --------------------------------------------------------------------------------
      Thread Execution Information:
      -----------------------
      Thread "net.sf.ehcache.CacheManager@1a18c55" thread-id: 44,127 thread-state: WAITING Waiting on lock: java.util.TaskQueue@1874082
      at: java.lang.Object.wait(Native Method)
      at: java.lang.Object.wait(Object.java:485)
      at: java.util.TimerThread.mainLoop(Timer.java:483)
      at: java.util.TimerThread.run(Timer.java:462)
      Thread Synchronization Statistics:
      -----------------------
      Number of times this thread was blocked (to enter/reenter a Monitor): 0
      Number of times this thread waited for a notification (i.e. it was in WAITING or TIMED_WAITING state): 1
      Total CPU time for this thread: 0 seconds 270,640 nanoseconds.
      User-level CPU time for this thread: 0 seconds 270,640 nanoseconds.
      Object Monitors currently held or requested by this thread: []
      Ownable Synchronizers (e.g. ReentrantLock and ReentrantReadWriteLock) held by this thread: []
      --------------------------------------------------------------------------------
      Thread Execution Information:
      -----------------------
      Thread "net.sf.ehcache.CacheManager@19c8377" thread-id: 44,126 thread-state: WAITING Waiting on lock: java.util.TaskQueue@9c541c
      at: java.lang.Object.wait(Native Method)
      at: java.lang.Object.wait(Object.java:485)
      at: java.util.TimerThread.mainLoop(Timer.java:483)
      at: java.util.TimerThread.run(Timer.java:462)
      Thread Synchronization Statistics:
      -----------------------
      Number of times this thread was blocked (to enter/reenter a Monitor): 0
      Number of times this thread waited for a notification (i.e. it was in WAITING or TIMED_WAITING state): 1
      Total CPU time for this thread: 0 seconds 248,052 nanoseconds.
      User-level CPU time for this thread: 0 seconds 248,052 nanoseconds.
      Object Monitors currently held or requested by this thread: []
      Ownable Synchronizers (e.g. ReentrantLock and ReentrantReadWriteLock) held by this thread: []

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            michael.y.chen
            Reporter:
            LeoInside
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: