-
15. Re: LocalTx, ClientTransaction leak?
ydzsidemiik Jan 10, 2008 10:54 AM (in response to ydzsidemiik)I tried not closing the sessions explicitly. Still leaks, but the top of the trace has changed:
Explicit session close:
org.jboss.resource.connectionmanager.xa.JcaXAResourceWrapper.end(Xid, int)
com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.delistResource(XAResource, int)
org.jboss.resource.adapter.jms.JmsSession.close()
com.acme.gateway.util.jms.JmsOperation.execute()
No explicit session close:
org.jboss.resource.connectionmanager.xa.JcaXAResourceWrapper.end(Xid, int)
com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.delistResource(XAResource, int)
org.jboss.resource.adapter.jms.JmsSessionFactoryImpl.close()
com.acme.gateway.util.jms.JmsOperation.execute()
I didn't see any option to increase the maximum depth of the allocation traces in YourKit, so I tried downloading JProfiler. It too seems to cut off in the same place. I wasn't able to find the option to increase the maximum depth in JProfiler either, do you happen to know where it might be located? -
16. Re: LocalTx, ClientTransaction leak?
ydzsidemiik Jan 10, 2008 1:36 PM (in response to ydzsidemiik)Hi Tim,
This issue is causing me serious problems. I am seeing my application sieze up completely for a full minute while the JVM runs a full GC, and even the minor GCs are seriously reducing throughput.
Perhaps if you could help me understand under what circumstances the call chain MessagingXAResource.end -> MessagingXAResource.unsetCurrentTransactionId -> ResourceManager.createLocalTx might be executed, I could take a stab and patching this myself and contribute my findings back to you. -
17. Re: LocalTx, ClientTransaction leak?
timfox Jan 12, 2008 8:35 AM (in response to ydzsidemiik)Could you post a simple sample program or test that exhibits the problem and one of the team will take a look?
Thanks. -
18. Re: LocalTx, ClientTransaction leak?
ydzsidemiik Jan 14, 2008 9:02 AM (in response to ydzsidemiik)The ejb3mdb example shipped with JBM works to demonstrate the issue. Every time the example is run, the number of ClientTransaction and LocalTx instances in memory goes up by two each. Running a full GC removes one, but the other remains. You can run the example as many times as you want and see the object counts inexorably tick upwards.
-
19. Re: LocalTx, ClientTransaction leak?
ydzsidemiik Jan 14, 2008 9:25 AM (in response to ydzsidemiik)I should note that I built and deployed the MDB independently of the ant build script, and modified the script to not perform that step itself. The script then simply called the Sender to repeatedly connect to a single deployment of the MDB.
-
20. Re: LocalTx, ClientTransaction leak?
ataylor Jan 15, 2008 6:43 AM (in response to ydzsidemiik)just to inform, I'm currently investigating this issue and will get back to you as soon as i can.
-
21. Re: LocalTx, ClientTransaction leak?
ydzsidemiik Jan 15, 2008 7:53 AM (in response to ydzsidemiik)Much appreciated.
-
22. Re: LocalTx, ClientTransaction leak?
ataylor Jan 16, 2008 2:37 PM (in response to ydzsidemiik)We've investigated this and found the memory leak where you suggested. This is now fixed in the maintenance branch.
This can be patched by checking out and building http://anonsvn.jboss.org/repos/messaging/branches/Branch_Stable -
23. Re: LocalTx, ClientTransaction leak?
ydzsidemiik Jan 16, 2008 3:07 PM (in response to ydzsidemiik)Outstanding news. Is there a timeline for the release of SP4 with this fix?
-
24. Re: LocalTx, ClientTransaction leak?
ataylor Jan 18, 2008 4:16 AM (in response to ydzsidemiik)There are no plans to release an SP4 at this time. The branch Branch_Stable is the maintenance branch which you should use to build against.
-
25. Re: LocalTx, ClientTransaction leak?
ydzsidemiik Jan 18, 2008 8:08 AM (in response to ydzsidemiik)Fair enough. Should I wait until JBMESSAGING-1221 is closed before building Branch_Stable?
Thanks again to both of you for your time and effort. It is a testament to the quality of JBoss as an organization that you are willing to be responsive even though I am not paying for a support contract. -
26. Re: LocalTx, ClientTransaction leak?
ataylor Jan 18, 2008 8:40 AM (in response to ydzsidemiik)yes, that would make sense
-
27. Re: LocalTx, ClientTransaction leak?
ydzsidemiik Jan 22, 2008 1:49 PM (in response to ydzsidemiik)I applied the fix to SP3 by compiling the 3 changed files from SVN 3601 and replacing the classes in the SP3 jar with the new ones.
It seems to have worked. Cheers! -
28. Re: LocalTx, ClientTransaction leak?
mglowacki Jun 17, 2010 9:53 AM (in response to ydzsidemiik)I am using JBoss 5.1.0GA and am having exactly the issue. I checked the jboss-messaging.jar version:
Implementation-Version: 1.4.3.GA (build: CVSTag=JBossMessaging_1_4_3_GA date=200903052203)