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

          Hide
          marina vatkina added a comment -

          I'm not targeting this for 3.1.1 as the overall issue 11088 is not marked to be fixed for 3.1.1

          Show
          marina vatkina added a comment - I'm not targeting this for 3.1.1 as the overall issue 11088 is not marked to be fixed for 3.1.1
          Hide
          Satish Kumar added a comment -

          Increasing the priority of this issue to Critical based on a discussion with Prasad. This issue needs to be fixed for 3.1.1 since it important for embedded GF. GF issue 11088 depends on this as well.

          Show
          Satish Kumar added a comment - Increasing the priority of this issue to Critical based on a discussion with Prasad. This issue needs to be fixed for 3.1.1 since it important for embedded GF. GF issue 11088 depends on this as well.
          Hide
          marina vatkina added a comment -

          Fixed:
          Sending internal-api/src/main/java/com/sun/enterprise/transaction/api/JavaEETransactionManager.java
          Sending jta/src/main/java/com/sun/enterprise/transaction/JavaEETransactionManagerSimplified.java
          Sending jta/src/main/java/com/sun/enterprise/transaction/startup/TransactionRecoveryWrapper.java
          Transmitting file data ...

          3.1.2: Committed revision 50732.
          4.0: Committed revision 50731.

          Show
          marina vatkina added a comment - Fixed: Sending internal-api/src/main/java/com/sun/enterprise/transaction/api/JavaEETransactionManager.java Sending jta/src/main/java/com/sun/enterprise/transaction/JavaEETransactionManagerSimplified.java Sending jta/src/main/java/com/sun/enterprise/transaction/startup/TransactionRecoveryWrapper.java Transmitting file data ... 3.1.2: Committed revision 50732. 4.0: Committed revision 50731.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: