完全禁用JMeter缓存 [英] Totally Disable JMeter Cache

查看:1458
本文介绍了完全禁用JMeter缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在测试一些针对强大压力的JSON API.但是,在某一时刻,响应时间趋于平稳的趋势".它增加到一个很高的点,然后下降到一个永不改变的响应时间.

I am testing a few JSON APIs against strong stress. However, at one point the "Trend" of increasing response times plateaus. It increases to a very high point and then goes down into a response time that never changes.

我尝试取消所有两个JMeter缓存管理器选项,并将最大缓存大小设置为1.还添加了一个HTTP标头,该标头在Cache-Control上的最大寿命为零.

I have tried unticking all both JMeter cache manager options, and set the max cache size to one. Also added an HTTP header that the max life on Cache-Control is zero.

如何完全禁用JMeter中的缓存?

How do I totally disable caching in JMeter?

注意:

我搜索了相关帖子:但是,出现的是将JMeter设计为像浏览器一样工作.我正试图做相反的事情.

I searched for relevant posts : however, what comes up is designing JMeter to act like a browser. I am trying to do the total opposite.

推荐答案

除非使用HTTP缓存管理器,否则不会进行缓存.

There is no caching unless you use HTTP Cache Manager.

您的问题可能是由于服务器响应不堪重负而导致请求拒绝或错误响应(需要几秒钟的时间来计算). 否则您可能会遇到带宽限制器或防火墙.

Your issue might be due to overwhelmed server responding with either request rejection or wrong response that takes few seconds to compute. Or you might be hitting a bandwidth limiter or firewall.

通过添加断言来确认您的回答正确无误.

Check by adding assertion that your responses are correct.

如果一切正常,那么您可能只是拥有服务器缓存,因此响应时间会降低,直到缓存被填满.

if everything is ok then you just might be having a server cache, so response times degrade until cache is filled up.

这篇关于完全禁用JMeter缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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