如何配置Jmeter放弃下载的文件? [英] how to configure Jmeter to discard downloaded files?

查看:96
本文介绍了如何配置Jmeter放弃下载的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我已经看了几个非常相似的问题.但是我找不到解决办法.

first of all i already had a look at several questions which are quite similar. But i wasn't able to find a solution.

我的脚本执行负载测试,它调用几个不同的URL(GET http)以下载后面的内容. 120个请求后,内存使用量最多增加2GB,而500至5-6GB之后

My script performs a load test it calls several different URLs(GET http) to download the content behind. After 120 requests the memory usage increases up to 2GB and after 500 to 5-6GB

我已经更改了xmx大小,希望可以解决问题,但不能解决问题.

I changed already the xmx size in hope that this will solve the problem but it doesn't.

是否可以将jmeter配置为不保存来自响应的文件?还是说立即丢弃下载的文件? 可能是JRE设置吗?

Is there any way to configure jmeter to not save the files coming from a response? Or lets say to discard immediately the downloaded files? Is it maybe an JRE setting?

还是没有办法解决内存增加的问题?

Or is there no way to solve this memory increasing problem?

Br, 卡巴

推荐答案

尝试在脚本中禁用View Results Tree,因为该脚本会记录所有要检查的结果.

Try disabling the View Results Tree in the script as it records all results for you to inspect.

jMeter文档专门提到了这一点:

The jMeter documentation specifically mentions this:

18.3.6查看结果树

18.3.6 View Results Tree

在负载测试期间不得使用查看结果树",因为它消耗了 很多资源(内存和CPU).仅将其用于任何功能 测试或在测试计划调试和验证期间.

View Results Tree MUST NOT BE USED during load test as it consumes a lot of resources (memory and CPU). Use it only for either functional testing or during Test Plan debugging and Validation.

这篇关于如何配置Jmeter放弃下载的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆