Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while generating report in apache-jmeter-5.4.1.tgz

Tags:

jmeter

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

In resume

Consumer failed with message :Begin size 0 is not equal to fixed size 5
  • currently using Java version "17" 2021-09-14 LTS
  • MacOS big SUR version 11.4
  • the properties files are fresh and values are equal to the default ones
  • 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

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

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?

thanks

like image 467
Camilo Echavarria Martinez Ota Avatar asked Sep 23 '21 06:09

Camilo Echavarria Martinez Ota


2 Answers

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

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

like image 124
Andrew Rimmer Avatar answered Nov 03 '22 00:11

Andrew Rimmer


I had the same issue with:

  • MacOS big SUR version 11.6
  • Jmeter 5.4.1 (installed via brew)
  • Temurin 11 (LTS) OpenJDK & Temurin 8 (LTS) OpenJDK

Running Jmeter with Java 8 solved my issue. The problem was, that Jmeter always used Java 11. I struggled some days to find out, how to set the Jmeter Java version:

  • set the correct Java 8 Home in: /usr/local/Cellar/jmeter/5.4.1/bin/jmeter:

    JAVA_HOME=$JAVA_8_HOME exec "/usr/local/Cellar/jmeter/5.4.1/libexec/bin/jmeter" "$@"

Maybe there are easier ways to set Java 8 for Jmeter - but this was the only solution which worked for me.

like image 38
felix Avatar answered Nov 03 '22 00:11

felix