Bug 52346

Summary: Shutdown could perhaps detect if there are any non-daemon threads left
Product: JMeter Reporter: Sebb <sebb>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: P2    
Version: 2.5.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   

Description Sebb 2011-12-16 16:19:03 UTC
See Bug 51798 - JMeter ended but JVM did exit, because of some non-daemon threads.

If JMeter can detect this, and log/display a message, that would be useful.

For example, create a daemon thread and if that is still running after a few seconds, we assume the JVM is waiting for non-daemon threads to exit, and then log/display the thread names etc.
Comment 1 Sebb 2011-12-17 12:33:04 UTC
URL: http://svn.apache.org/viewvc?rev=1215478&view=rev
Log:
Bug 52346 - Shutdown detects if there are any non-daemon threads left which prevent JVM exit

Modified:
   jmeter/trunk/src/core/org/apache/jmeter/JMeter.java
   jmeter/trunk/src/jorphan/org/apache/jorphan/util/JOrphanUtils.java
   jmeter/trunk/xdocs/changes.xml