Quartz Scheduler (Historical - Do Not File New Issues Here - See GitHub)
  1. Quartz Scheduler (Historical - Do Not File New Issues Here - See GitHub)
  2. QTZ-433

WorkManagerThreadExecutor causes WebSphere Application Server to log a warning about hanging threads

    Details

    • Type: Bug Bug
    • Status: New
    • Priority: 2 Major 2 Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.1
    • Fix Version/s: 2.2.4
    • Component/s: ThreadPools
    • Labels:
      None
    • Terracotta Target:
      Unknown

      Description

      I'm using org.quartz.commonj.WorkManagerThreadExecutor on WebSphere 8 to get managed threads. After 10 minutes or more a warning is logged in WebSphere's SystemOut.log:

      ThreadMonitor W WSVR0605W: Thread "WorkManager.DefaultWorkManager : 1" (000001eb) has been active for 736400 milliseconds and may be hung. There is/are 1 thread(s) in total in the server that may be hung.
      at java.lang.Object.wait(Native Method)
      at java.lang.Object.wait(Object.java:196)
      at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:410)
      at org.quartz.commonj.DelegatingWork.run(WorkManagerThreadExecutor.java:97)
      at com.ibm.ws.asynchbeans.J2EEContext$RunProxy.run(J2EEContext.java:265)
      at java.security.AccessController.doPrivileged(AccessController.java:229)
      at com.ibm.ws.asynchbeans.J2EEContext.run(J2EEContext.java:1165)
      at com.ibm.ws.asynchbeans.WorkWithExecutionContextImpl.go(WorkWithExecutionContextImpl.java:199)
      at com.ibm.ws.asynchbeans.CJWorkItemImpl.run(CJWorkItemImpl.java:236)
      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1691)

      WebSphere expects normal CommonJ work to be short-lived. Long-running threads should be daemon threads.

      The fix is simple: Just make isDaemon() return true instead of false in WorkManagerThreadExecutor.java, around line 100. I have made the change in my local copy and did not get the warning any more.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            James House
            Reporter:
            Stefan Gybas
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: