yandex / yandex-tank

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

yandex-tank-jmeter said "An error occurred: Delimiter (code 9) must be printable." #16

Closed nik-kor closed 11 years ago

nik-kor commented 11 years ago

Hi!

I ran this command

->yandex-tank-jmeter 
19:42:49 WARNING: Using 'load.conf' is unrecommended, please use 'load.ini' instead
19:42:49 INFO: Loading configs...
19:42:49 INFO: Loading plugins...
19:42:49 INFO: Performing test
19:42:49 INFO: Configuring plugins...
19:42:49 WARNING: Graphite uploader is not configured and will not send any data
19:42:49 INFO: Preparing test...
19:42:49 INFO: Checking tank resources...
19:42:49 INFO: Starting monitoring with config: /usr/lib/yandex-tank/Tank/Plugins/monitoring_default_config.xml
19:42:49 INFO: Installing monitoring agent at localhost...
19:42:49 WARNING: Failed to start monitoring: Failed to get remote dir via SSH at localhost, code 255: 
19:42:49 INFO: Starting test...
19:42:49 INFO: Starting local HTTP server for online view at port: http://nick-ThinkPad-X220:8080/
19:42:49 INFO: Starting jmeter with arguments: ['jmeter', '-n', '-t', '/home/nick/dev/ged_projects/load_average_tests/simple-test/modified_fKvOeJ.jmx', '-j', '/home/nick/dev/ged_projects/load_average_tests/simple-test/jmeter_Nh2L17.log', '-Jjmeter.save.saveservice.default_delimiter=\\t']
19:42:49 INFO: Waiting for test to finish...

 ... 

And it stops with an error "An error occurred: Delimiter (code 9) must be printable." And jmeter log

->cat 2013-01-31_19-42-51.SNZcM7/jmeter_Nh2L17.log | grep -A 5 -B 1 FATAL 
2013/01/31 19:42:50 INFO  - jmeter.samplers.SampleResult: sampleresult.default.encoding is set to ISO-8859-1 
2013/01/31 19:42:50 FATAL - jmeter.JMeter: An error occurred:  org.apache.jorphan.util.JMeterError: Delimiter (code 9) must be printable.
    at org.apache.jmeter.samplers.SampleSaveConfiguration.<clinit>(SampleSaveConfiguration.java:312)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at org.apache.jmeter.save.converters.SampleSaveConfigurationConverter.class$(SampleSaveConfigurationConverter.java:76)
    at org.apache.jmeter.save.converters.SampleSaveConfigurationConverter.canConvert(SampleSaveConfigurationConverter.java:109)

In load.conf

->cat load.conf 
[jmeter]
jmx=/home/nick/dev/ged_projects/load_average_tests/simple-test/SimpleTest.jmx

And It stops cause of option "Jjmeter.save.saveservice.default_delimiter=\t']"

Yandex.Tank runs jmeter with that option here https://github.com/yandex-load/yandex-tank/blob/master/Tank/Plugins/JMeter.py#L53

So is at a bug? Or it's a wrong test plan(jmx-file) ?

undera commented 11 years ago

Use jmeter 2.6 or better. Nikita Korotkih notifications@github.com написал:Hi!

I ran this command

->yandex-tank-jmeter 19:42:49 WARNING: Using 'load.conf' is unrecommended, please use 'load.ini' instead 19:42:49 INFO: Loading configs... 19:42:49 INFO: Loading plugins... 19:42:49 INFO: Performing test 19:42:49 INFO: Configuring plugins... 19:42:49 WARNING: Graphite uploader is not configured and will not send any data 19:42:49 INFO: Preparing test... 19:42:49 INFO: Checking tank resources... 19:42:49 INFO: Starting monitoring with config: /usr/lib/yandex-tank/Tank/Plugins/monitoring_default_config.xml 19:42:49 INFO: Installing monitoring agent at localhost... 19:42:49 WARNING: Failed to start monitoring: Failed to get remote dir via SSH at localhost, code 255: 19:42:49 INFO: Starting test... 19:42:49 INFO: Starting local HTTP server for online view at port: http://nick-ThinkPad-X220:8080/ 19:42:49 INFO: Starting jmeter with arguments: ['jmeter', '-n', '-t', '/home/nick/dev/ged_projects/load_average_tests/simple-test/modified_fKvOeJ.jmx', '-j', '/home/nick/dev/ged_projects/load_average_tests/simple-test/jmeter_Nh2L17.log', '-Jjmeter.save.saveservice.default_delimiter=\t'] 19:42:49 INFO: Waiting for test to finish...

... And it stops with an error "An error occurred: Delimiter (code 9) must be printable." And jmeter log

->cat 2013-01-31_19-42-51.SNZcM7/jmeter_Nh2L17.log | grep -A 5 -B 1 FATAL 2013/01/31 19:42:50 INFO - jmeter.samplers.SampleResult: sampleresult.default.encoding is set to ISO-8859-1 2013/01/31 19:42:50 FATAL - jmeter.JMeter: An error occurred: org.apache.jorphan.util.JMeterError: Delimiter (code 9) must be printable. at org.apache.jmeter.samplers.SampleSaveConfiguration.(SampleSaveConfiguration.java:312) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.apache.jmeter.save.converters.SampleSaveConfigurationConverter.class$(SampleSaveConfigurationConverter.java:76) at org.apache.jmeter.save.converters.SampleSaveConfigurationConverter.canConvert(SampleSaveConfigurationConverter.java:109) In load.conf

->cat load.conf [jmeter] jmx=/home/nick/dev/ged_projects/load_average_tests/simple-test/SimpleTest.jmx And It stops cause of option "Jjmeter.save.saveservice.default_delimiter=\t']"

Yandex.Tank runs jmeter with that option here https://github.com/yandex-load/yandex-tank/blob/master/Tank/Plugins/JMeter.py#L53

So is at a bug? Or it's a wrong test plan(jmx-file) ?

— Reply to this email directly or view it on GitHub.

nik-kor commented 11 years ago

Yeah, it works!

Thank you!