Hello, I noticed this bug while working on issue 51691. I had issue in authentication, so connection got created but the session fails. So Object was not constructed but connection was and since ReceiveSubscriber or Publisher are not created, they cannot be destroyed. I fixed this by checking in constructors that init goes to the end, if not I destroy object. Regards Philippe
Created attachment 27524 [details] Fix to the issue
Thanks! There was strange item in the patch: Utils.close(SUBSCRIBER, log); + Utils.close(SUBSCRIBER, log); Utils.close(SESSION, log); Utils.close(CONN, log); I assume the second call to close SUBSCRIBER was not intentional. URL: http://svn.apache.org/viewvc?rev=1172073&view=rev Log: Bug 51841 - JMS : If an error occurs in ReceiveSubscriber constructor or Publisher, then Connections will stay open Modified: jakarta/jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/client/Publisher.java jakarta/jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/client/ReceiveSubscriber.java jakarta/jmeter/trunk/xdocs/changes.xml
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2547