jmeter生成html报告报错Begin size 0 is not equal to fixed size 5

在使用jmeter生成html时报以下错误

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

很多文章说是java版本问题,如果是使用了jenv切换多版本java也会存在这个问题

执行

jmeter -n -t jmeter-test.jmx -l ./report/log.jtl -e -o ./report

会报

WARNING: package sun.awt.X11 not in java.desktop

Creating summariser

Created the tree successfully using jmeter-test.jmx

Starting standalone test @ Thu Apr 20 11:46:06 CST 2023 (1681962366773)

Waiting for possible Shutdown/StopTestNow/HeapDump/ThreadDump message on port 4445

summary =    100 in 00:00:01 =  84.1/s Avg:    74 Min:    17 Max:  230 Err:    0 (0.00%)

Tidying up ...    @ Thu Apr 20 11:46:07 CST 2023 (1681962367993)

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

... end of run

解决办法直接在

vi /opt/homebrew/Cellar/jmeter/5.4.3/libexec/bin/jmeter

加入

JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_311.jdk/Contents/Home"

这样就可以生成了html

版权声明:
作者:dingding
链接:https://www.techfm.club/p/45200.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>