Bug 52346 - Shutdown could perhaps detect if there are any non-daemon threads left
Shutdown could perhaps detect if there are any non-daemon threads left
Status: RESOLVED FIXED
Product: JMeter
Classification: Unclassified
Component: Main
2.5.1
PC Windows XP
: P2 enhancement (vote)
: ---
Assigned To: JMeter issues mailing list
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2011-12-16 16:19 UTC by Sebb
Modified: 2011-12-17 12:33 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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