[GLASSFISH-16873] The transaction-manager timer thread is not stopped during the GF shutdown process Created: 16/Jun/11  Updated: 09/Nov/11  Resolved: 09/Nov/11

Status: Resolved
Project: glassfish
Component/s: jts
Affects Version/s: None
Fix Version/s: 3.1.2, 4.0

Type: Bug Priority: Critical
Reporter: Satish Kumar Assignee: marina vatkina
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
blocks GLASSFISH-11088 [embedded] Stopping GFv3 leaves sever... Open
Tags: 3_1_1-scrubbed


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.

Comment by marina vatkina [ 16/Jun/11 ]

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

Comment by Satish Kumar [ 30/Jun/11 ]

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.

Comment by marina vatkina [ 09/Nov/11 ]

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.

Generated at Tue Dec 01 03:49:14 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.