0
votes

Command Used : ./jmeter -n -t TESTSIT.jmx -JTestEnv=sit2 -l ResultLog.log -e -o ResultLog

the same command generates result from local cmd and gives following exception from ec2 instance

Error message 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 :Consumer failed with message :Cannot create temporary file for channel #0

1
Check the saveservice settings in the properties file are the same both on your local machine and ec2 instance. - Masud Jahan

1 Answers

0
votes

First of all, are you sure your EC2 instance has enough free disk space? You can check it using i.e. df command

Second, it is not very possible to provide a comprehensive answer without seeing the full jmeter.log file, however my another assumption is that your EC2 user doesn't have write access to the OS temporary folder. You can amend jmeter.reportgenerator.temp_dir property and point it to the folder where you have write access for sure, i.e.

./jmeter -Jjmeter.reportgenerator.temp_dir=/tmp -g ResultLog.log -o ResultLog

If it helps you can make the change permanent by adding the above line to user.properties or reportgenerator.properties file.

More information: