JMeter Maven mojo throws IllegalArgumentException with large JTL file

我只是一个虾纸丫 提交于 2019-12-06 14:25:29

Check to see if your test plan has "Functional Test Mode" enabled.

http://jmeter.apache.org/usermanual/listeners.html

The information to be saved is configurable. For maximum information, choose "xml" as the format and specify "Functional Test Mode" on the Test Plan element. If this box is not checked, the default saved data includes a time stamp (the number of milliseconds since midnight, January 1, 1970 UTC), the data type, the thread name, the label, the response time, message, and code, and a success indicator. If checked, all information, including the full response data will be logged.

If checked, this will result in a large JTL file because all the verbose request and response data is saved. Maybe you turned this on to debug your tests and forgot to turn it off?

It looks like you're storing too much, i.e. response data which causes large overhead. So it is recommended to:

  • use CSV output format
  • do not store response data (at least for successful samplers)

So add the next 2 lines in user.properties file (lives under /bin folder of your JMeter installation)

jmeter.save.saveservice.output_format=csv
jmeter.save.saveservice.response_data=false

You need to restart JMeter to pick the changes up.

Example "good" results saving configuration should look like:

Reference material:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!