Run multiple jmeter tasks on a machine, how to specify a port to stop jmeter test

cydia

I executed 3 jmeter tasks on an ubuntu server. Now I need to stop one of them (requires report generation). I execute the stoptest.sh script in the bin directory and find that only the first jmeter task started can be stopped. This is the test task with port 4445, which can be seen through the jmeter log at startup. The ports of the other 2 tasks are 4446 and 4447, so how do I specify the port to stop the test? For example, I want to stop the test task with port 4447, but keep the other 2 tests to continue, what should I do? Of course, I will not use the kill -9 jmeter-pid method, because this is a forced exit from the jmeter process, and no test report will be generated

Dmitri T
  1. You can provide the JMeter's shutdown client port as the parameter like:

    ./stoptest.sh 4446 
    

    enter image description here

  2. It's better to use shutdown.sh as this script "asks" JMeter to stop its threads while stoptest.sh "kills" the threads which may result in tons of errors related to threads abnormal termination. The JMeter engine shutdown port can be specified exactly the same way

  3. It is possible to generate the report at any time even during the test execution, if you set jmeter.save.saveservice.autoflush property to true JMeter will save each Sampler execution result into the .jtl file as soon as it's ready

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to create and run Apache JMeter Test Scripts from a Java program?

How to create and run Apache JMeter Test Scripts from a Java program and capture output?

How to stop Jmeter test after specified number of threads failed

How to run multiple MySQL statements via JDBC sampler in JMeter

Stop JMeter test in Beanshell PreProcessor

JMeter How to stop the test when we reach specific error rate

How to make Jmeter run command from CMD - OS sampler - JMETER

How to aggregate the results from different machine in Jmeter?

Jmeter , How to pass comma seperated multiple values in jmeter

How to group responses in report by exceptions/assertions during JMeter test run

How to convert Jmeter 2.10 test to Jmeter 5

Jmeter - How to test an api protected with Client Certificate Authentication in Jmeter?

How to specify paths in JMeter tests installation independent

How to run jmeter-analysis-maven-plugin on multiple result files

Create JMeter test for multiple test on the same API

How to run non-gui Jmeter test with multiple output files

Jmeter run stress test with formula

JMeter: how to stop the whole performance test after a defined time

Load test run in Jenkins with Jmeter does not end

How to start and pause jmeter test plan run

C# how to run multiple tasks in a never-stop while

Stop Selenium WebDrvier Test in Jmeter

how to specify nested json path in jmespath and jmeter

issue regarding postgres function test run in jmeter

JMeter: How to stop test if I receive a message in error queue

How to stop a test after finding specific word in jmeter response?

How to run Jmeter script on Github

Jmeter Test steps recorder is not saving the steps after stop the record

How to design this test plan in JMeter