本文介绍了在 apache-jmeter-5.4.1.tgz 中生成报告时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

sh jmeter.sh -n -t filePath.jmx -l outFilePath.jtl -e -o folderPath

sh jmeter.sh -n -t filePath.jmx -l outFilePath.jtl -e -o folderPath

Error generating the report: org.apache.jmeter.report.dashboard.GenerationException: Error while processing samples: Consumer failed with message :Consumer failed with message :Consumer failed with message :Consumer failed with message :Begin size 0 is not equal to fixed size 5

简历中

Consumer failed with message :Begin size 0 is not equal to fixed size 5

  • 目前使用的是 Java 版本17";2021-09-14 LTS
  • MacOS big SUR 版本 11.4
  • 属性文件是最新的,值与默认值相同
  • Jmeter 5.4.1
  • outFile.jtl
  • timeStamp,elapsed,label,responseCode,responseMessage,threadName,dataType,success,failureMessage,bytes,sentBytes,grpThreads,allThreads,URL,Latency,IdleTime,Connect
    1632430450882,1117,HTTP Request,200,OK,FIRST_Jmeter_Test 1-3,text,true,,3824,557,3,3,Url_hidden,1111,0,256
    1632430450448,1755,HTTP Request,200,OK,FIRST_Jmeter_Test 1-2,text,true,,3836,557,3,3,Url_hidden,1755,0,690
    1632430450448,1755,HTTP Request,200,OK,FIRST_Jmeter_Test 1-1,text,true,,3828,557,3,3,Url_hidden,1755,0,690
    1632430452312,585,HTTP Request,200,OK,FIRST_Jmeter_Test 1-2,text,true,,3836,557,3,3,Url_hidden,585,0,144
    1632430452238,758,HTTP Request,200,OK,FIRST_Jmeter_Test 1-3,text,true,,3832,557,3,3,Url_hidden,757,0,137
    1632430452301,806,HTTP Request,200,OK,FIRST_Jmeter_Test 1-1,text,true,,3828,557,3,3,Url_hidden,805,0,136
    1632430452962,550,HTTP Request,200,OK,FIRST_Jmeter_Test 1-2,text,true,,3824,557,3,3,Url_hidden,550,0,152
    1632430453328,593,HTTP Request,200,OK,FIRST_Jmeter_Test 1-1,text,true,,3828,557,2,2,Url_hidden,592,0,135
    1632430453276,815,HTTP Request,200,OK,FIRST_Jmeter_Test 1-3,text,true,,3840,557,1,1,Url_hidden,814,0,142
    

    线程运行成功,jtl文件也创建好了.

    The thread run successfully and the jtl file is created as well.

    我对 Jmeter 很陌生,并试图看看大小"在哪里?属性当前已找到以查看如何更改它,但无法在任何 *.properties 文件中找到它

    I quite new on Jmeter and tried to see where that "size" attribute is currently locate to see how change it, but could not find it on any *.properties file

    尽管如何解决这个问题,但消息指的是什么?

    any though how can be this fixed, what the message is referring to?

    谢谢

    推荐答案

    此错误可能是由于 JMeter 与 Java 17 不兼容(如 Dmitri T 所述).

    This error is likely due to an incompatibility of JMeter with Java 17 (as mentioned by Dmitri T).

    在我们等待修复的同时,解决方法是降级到 Java 16.我可以确认这为我解决了问题.

    Whilst we wait for a fix, a workaround would be downgrading to Java 16. I can confirm this solved the issue for me.

    这篇关于在 apache-jmeter-5.4.1.tgz 中生成报告时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 22:55