glassfish
  1. glassfish
  2. GLASSFISH-11824

grizzly threads not closed, stays in preClose0 and holds lock

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: V3
    • Fix Version/s: v3.0.1
    • Component/s: grizzly-kernel
    • Labels:
      None
    • Environment:

      Operating System: Linux
      Platform: Linux

    • Issuezilla Id:
      11,824

      Description

      I observe "hangs" in GF3 when all threads in the http-threadgroup are blocked,
      waiting on a particular thread to release a lock. The particular thread is in
      sun.nio.ch.FileDispatcher.preClose0(Native Method) and never returns, hence the
      lock is never released.

      The stacktrace of this thread:

      Thread "Thread-11" thread-id: 27 thread-state: RUNNABLE Running in native
      at: sun.nio.ch.FileDispatcher.preClose0(Native Method)
      at: sun.nio.ch.SocketDispatcher.preClose(SocketDispatcher.java:41)
      at:
      sun.nio.ch.SocketChannelImpl.implCloseSelectableChannel(SocketChannelImpl.java:684)
      at:
      java.nio.channels.spi.AbstractSelectableChannel.implCloseChannel(AbstractSelectableChannel.java:201)
      at:
      java.nio.channels.spi.AbstractInterruptibleChannel.close(AbstractInterruptibleChannel.java:97)
      at: sun.nio.ch.SocketAdaptor.close(SocketAdaptor.java:352)
      at:
      com.sun.grizzly.TCPSelectorHandler.closeChannel(TCPSelectorHandler.java:1354)
      at:
      com.sun.grizzly.BaseSelectionKeyHandler.doAfterKeyCancel(BaseSelectionKeyHandler.java:229)
      at:
      com.sun.grizzly.BaseSelectionKeyHandler.cancel(BaseSelectionKeyHandler.java:216)
      at:
      com.sun.grizzly.http.SelectorThreadKeyHandler.cancel(SelectorThreadKeyHandler.java:80)
      at:
      com.sun.enterprise.v3.services.impl.monitor.MonitorableSelectionKeyHandler.cancel(MonitorableSelectionKeyHandler.java:80)
      at:
      com.sun.grizzly.TCPSelectorHandler.addPendingKeyCancel(TCPSelectorHandler.java:613)
      at:
      com.sun.grizzly.http.SelectorThreadKeyHandler.expire(SelectorThreadKeyHandler.java:136)
      at:
      com.sun.grizzly.TCPSelectorHandler.postSelect(TCPSelectorHandler.java:556)
      at:
      com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:206)
      at:
      com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:130)
      at:
      java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at:
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at: java.lang.Thread.run(Thread.java:619)

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            oleksiys
            Reporter:
            johanvos
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: