Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
263 views
in Technique[技术] by (71.8m points)

Taurus / JMeter stucked on preparing phase

I'm trying to run a simple Taurus scenario to test the tool. I'm on windows 10 with Taurus 1.15.1. I have written a simple yaml file, and try to run it. The result is the following : Taurus run

In the taurus logs we can see that the last line is about the plugin manager :

[2021-01-07 11:46:55,273 DEBUG root] Executing shell: ['C:\Users\fabie\.bzt\jmeter-taurus\5.2.1\bin\PluginsManagerCMD.bat', 'install-for-jmx', 'C:\Users\fabie\Documents\taurus\2021-01-07_11-46-53.562154\modified_requests.jmx'] at .

So I tried to execute this command in another window to check the log. Everything looks fine, but it never returns which could explain why taurus is stucked in this preparing phase: enter image description here

The bat itself is a single line Java command :

java %JVM_ARGS% -jar "%~dp0..libcmdrunner-2.2.jar" --tool org.jmeterplugins.repository.PluginManagerCMD %*

The yaml file is the following :

execution:
- concurrency: 2
  hold-for: 1m
  ramp-up: 0m
  scenario: yaml_example
  
scenarios:
  yaml_example:
    retrieve-resources: false
    requests:
      - http://www.redirection-web.net/

Any idea?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Still not sufficient, I would suggest increasing JMeter logging level to maximum by changing <Root level="info"> to <Root level="debug"> in the log4j2.xml file (lives in "bin" folder of your JMeter installation.

Or if you prefer Taurus for some reason:

modules:
  jmeter:
    properties:
        log_level: DEBUG

Also run Taurus in more verbose mode by passing -v command-line argument to it like:

bzt -v your_test.yaml

Most probably jmeter.log and bzt.log files will contain some clues so you would be able to troubleshoot the issue.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...