yandex / yandex-tank

Load and performance benchmark tool
Other
2.46k stars 279 forks source link

Jmeter does not connect when yandex-tank starts #863

Open DevidzeIL opened 2 years ago

DevidzeIL commented 2 years ago

When I run yandex-tank -c load.yaml the terminal displays the following error:

Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.8/dist-packages/yandextank/core/consoleworker.py", line 197, in run
    self.retcode = self.core.wait_for_finish()
  File "/usr/local/lib/python3.8/dist-packages/yandextank/common/util.py", line 845, in __exit__
    retcode = self.worker.core.plugins_end_test(retcode)
  File "/usr/local/lib/python3.8/dist-packages/yandextank/core/tankcore.py", line 315, in plugins_end_test
    retcode = self.job.aggregator.end_test(retcode)
  File "/usr/local/lib/python3.8/dist-packages/yandextank/aggregator/tank_aggregator.py", line 124, in end_test
    retcode = self.generator.end_test(retcode)
  File "/usr/local/lib/python3.8/dist-packages/yandextank/plugins/JMeter/plugin.py", line 168, in end_test
    self.reader.close()
AttributeError: 'NoneType' object has no attribute 'close'

I am using Jmeter + Yandex Tank. In Jmeter a simple HTTP Request to a server.

Yandex Tank load.yaml:

overload:
        enabled: true
        package: yandextank.plugins.DataUploader
        token_file: token.txt
        job_name: Y-Tank Stress Test
        job_dsc: Test load

jmeter:
        enabled: true
        package: yandextank.plugins.JMeter
        jmx: test.jmx
        jmeter_path: /home/dev/programs/apache-jmeter-5.4.1/bin/jmeter
        buffered_seconds: 0
        ext_log: none
        variables:
                protocol: https
                host: server.com
                path: /
                thread_rpm: 5
                loops: 1

phantom:
        enabled: false

console:
        enabled: true

telegraf:
        enabled: false