glassfish
  1. glassfish
  2. GLASSFISH-16873

The transaction-manager timer thread is not stopped during the GF shutdown process

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.2, 4.0
    • Component/s: jts
    • Labels:
      None

      Description

      JavaEETransactionManagerSimplified seems to be starting a timer called - trasaction-manager but don't appear to be stopping this during the GF shutdown process. This is causing issues in embedded GF (see issue 11088) since this thread is left lingering around. This class will need to stop the timer during GF shutdown. Snippets from the JStack are below.

      "transaction-manager" daemon prio=10 tid=0x6ef4f000 nid=0x7f01 in Object.wait() [0x6f3ab000]
      java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(Native Method)

      • waiting on <0xa34bb4f0> (a java.util.TaskQueue)
        at java.lang.Object.wait(Object.java:485)
        at java.util.TimerThread.mainLoop(Timer.java:483)
      • locked <0xa34bb4f0> (a java.util.TaskQueue)
        at java.util.TimerThread.run(Timer.java:462)

      This is leading to "Out-Of-Memory" problem and other side effects. This issue needs to be resolved for 3.1.1.

        Issue Links

          Activity

          Satish Kumar created issue -
          marina vatkina made changes -
          Field Original Value New Value
          Tags 3_1_1-scrubbed
          Satish Kumar made changes -
          Link This issue blocks GLASSFISH-11088 [ GLASSFISH-11088 ]
          Satish Kumar made changes -
          Priority Major [ 3 ] Critical [ 2 ]
          marina vatkina made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          marina vatkina made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Fix Version/s 3.1.2 [ 15100 ]
          Fix Version/s 4.0 [ 10970 ]
          Resolution Fixed [ 1 ]

            People

            • Assignee:
              marina vatkina
              Reporter:
              Satish Kumar
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: