从机请求成功,但主机响应体为空

The request success in slave but the response body is empty in host

步骤:
1.通过文档配置jmeter主机和从机
2. 运行分布式模式下的jmeter
3.在查看结果树中查看结果

结果:
1. 请求显示成功,但在查看结果树中响应主体为空
2. 在从机上我检查了 jmeter-server.log 但没有错误

分布式模式下的JMeter,默认情况下,doesn't send response data为了消耗更少的内存并且不影响性能

Listeners in the test plan send their results back to the client JMeter which writes the results to the specified files By default, samples are sent back synchronously as they are generated. This can affect the maximum throughput of the server test

如果要查看结果,则需要将模式更改为Standard

mode sample sending mode - default is StrippedBatch

Standard send samples synchronously as soon as they are generated

或者不是Stripped模式,如Batch

Stripped mode family strips responseData so this means that some Elements that rely on the previous responseData being available will not work.