Bug 52346 - Shutdown could perhaps detect if there are any non-daemon threads left
Summary: Shutdown could perhaps detect if there are any non-daemon threads left
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.5.1
Hardware: PC Windows XP
: P2 enhancement (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
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
Comment 2 The ASF infrastructure team 2022-09-24 20:37:48 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2684