问题
I am running 24 Hr load test on jmeter with 3256 threads. But even after 28 hrs some of the threads keep running and does not get ramp down. There are several errors in the run.
Even when I choose to stop the threads,"Shutting down all the threads, please be patient" Pop up appears and stays forever and no threads are ramping down.
For your information:- Number of threads-3256; Ramp up period-300; Loop Count-192 Considering all the think/wait time in the script , scenario should run for 24Hrs.
How can I close all the threads forcefully.
回答1:
There are following options available:
- JMeter is listening to shutdown messages on port 4445. There are 2 scripts in /bin folder of your JMeter installation:
- shutdown.cmd(sh) - send graceful shutdown request to all threads
- stoptest.cmd(sh) - force stop threads
- Use Test Action Sampler "Stop Now" option for "All Threads"
Use Beanshell Sampler with the following code:
SampleResult.setStopTestNow(true);
However in that way you can get lots of errors caused by force shutting down of test threads which will be in your test results.
Actually I think that behavior your're experiencing is being caused by lack of resources on your load generator (JMeter) side. Try following recommendations from JMeter Performance and Tuning Tips guide to see if it helps (you don't need to wait all 24h, it will be enough to wait till all threads are ramped up).
If adjusting JMeter parameters won't help it looks like that you'll need to consider distributed testing and generate the load from more than one host.
来源:https://stackoverflow.com/questions/28710463/threads-keep-running-even-after-test-finishes-in-jmeter