You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jakarta.apache.org by bu...@apache.org on 2011/09/23 12:18:06 UTC
DO NOT REPLY [Bug 51880] The shutdown command is not working if I
invoke it before all the thread are started
https://issues.apache.org/bugzilla/show_bug.cgi?id=51880
--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> 2011-09-23 10:18:06 UTC ---
Created attachment 27575
--> https://issues.apache.org/bugzilla/attachment.cgi?id=27575
Fix to the issue
Hello,
I reproduce your issue (not sure it's a new one).
In fact shutdown will succeed but only after initial rampup will have occured.
In current implementation, only stop was called without interruption of thread,
so sleeping threads would be still blocked in sleep:
"Thread Group 1-23" prio=6 tid=101de3000 nid=0x125416000 waiting on condition
[125415000]
java.lang.Thread.State: TIMED_WAITING (sleeping)
at java.lang.Thread.sleep(Native Method)
at
org.apache.jmeter.threads.JMeterThread.rampUpDelay(JMeterThread.java:750)
at org.apache.jmeter.threads.JMeterThread.initRun(JMeterThread.java:491)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:245)
at java.lang.Thread.run(Thread.java:680)
So my fix calls interrupt on Thread to give a chance to sleep to exit.
Regards
Philippe Mouawad
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org