Skip to content

JMeter 5.6 - ThreadGroups are running endlessly in non-gui mode #6008

@dgetzlaf

Description

@dgetzlaf

Expected behavior

In gui mode, JMeter acts as always.
In non-gui mode JMeter runs all Thread Groups endlessly, when there is no specified Thread lifetime.

JMeter was used to run the number of configured Loops - even without a specified Thread lifetime.

image

Also there was a Property in the JMX beneath the ThreadGroup

<elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller">
    <boolProp name="LoopController.continue_forever">false</boolProp>
    <stringProp name="LoopController.loops">1</stringProp>
</elementProp>

Actual behavior

Since JMeter 5.6 the ThreadGroups without a specified Thread lifetime run endlessly.
Also the property in the JMX beneath the ThreadGroup is missing

    <boolProp name="LoopController.continue_forever">false</boolProp>

Steps to reproduce the problem

Open a TestPlan from JMeter 5.5 with JMeter 5.6, save it and review the difference.

Otherwise use this test plan non-stopping-threads-jmeter-5.6.jmx.txt

run in gui mode -> should execute...
.. the setUp Thread Group once
..the Thread Group 4 times

  • run in non-gui mode <path-to-jmeter-5.6>\jmeter.bat -t non-stopping-threads-jmeter-5.6.jmx -l jmeter.log -n
  • tail the jmeter.log
  • see that the setUp Thread Group is not stopping (consecutive printing of 'Should exist only once')
  • abort the test execution

JMeter Version

5.6

Java Version

openjdk version "17.0.7" 2023-04-18 LTS OpenJDK Runtime Environment (build 17.0.7+7-LTS) OpenJDK 64-Bit Server VM (build 17.0.7+7-LTS, mixed mode, sharing)

OS Version

Microsoft Windows [Version 10.0.19045.3086]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions