jmeter save response to a file ,the file size up to 10MB, when test file is 50MB

点点圈 提交于 2021-02-05 09:37:19

问题


i just test a http request ,it will be download a 50MB file , but the "Save the Responses to a File" save a file up to 10 MB, how to set set that i can download the full size of the file in command line


回答1:


Add this line document.max_size=0 to your user.properties file or uncomment it in the jmeter.properties file. It is suggested to add to the user.properties file.

The default size for document parsing is 10Mb. If you set this value to zero (0) then there will be no checking for 10 MB. To invoke the properties file, you have to restart your JMeter.




回答2:


There is httpsampler.max_bytes_to_store_per_request JMeter property which defaults to 10 megabytes so you can increase it according to your response size if you need to get the file stored. It can be amended in 2 ways:

  1. Add the next line to user.properties file (located in JMeter's "bin" folder)

    httpsampler.max_bytes_to_store_per_request=62914560
    

    this will increase the maximum response size for HTTP Request samplers to 60 megabytes, JMeter restart will be required to pick the property up

  2. Pass the property via -J command-line argument like:

    jmeter -Jhttpsampler.max_bytes_to_store_per_request=62914560 -m -t test.jmx -l test.jtl
    

    in this case restart will not be required, but the property will be changed only for the current JMeter session

References:

  • Configuring JMeter
  • Apache JMeter Properties Customization Guide


来源:https://stackoverflow.com/questions/43467834/jmeter-save-response-to-a-file-the-file-size-up-to-10mb-when-test-file-is-50mb

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