我为我的线程组设置了几个 HTTP 请求。我注意到第一个请求总是比任何其他请求花费更长的时间。我重新排序了我的请求,但问题仍然存在。 这使得分析响应时间变得困难。
这是 JMeter 的已知问题吗?有解决办法吗?
这是我的设置
org.apache.jmeter.threads.ThreadGroup@69bb01
org.apache.jmeter.config.ConfigTestElement@b3600d
org.apache.jmeter.sampler.DebugSampler@67149d
https: 1st request
Query Data:
https: 2nd request
Query Data:
Query Data:
org.apache.jmeter.reporters.ResultCollector@11b53af
org.apache.jmeter.reporters.ResultCollector@11308c7
org.apache.jmeter.reporters.ResultCollector@a5643e
org.apache.jmeter.reporters.ResultCollector@585611
org.apache.jmeter.reporters.Summariser@1e8f4b9
org.apache.jmeter.reporters.ResultCollector@11ad922
org.apache.jmeter.reporters.ResultCollector@1a56999
最佳答案
这很可能是因为
Servers usually need a warm-up before they reach their full speed: this is particularly true for the Java platform where you surely don’t want to measure class loading time, JSP compilation time or native compilation time.
您是否首先允许对被测量的服务器进行一些预热流量,以允许事物进入缓存、编译 JSP 页面、将数据库工作集置于内存中等等?
关于java - JMeter 中的第一个 HTTP 请求花费了很长时间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10982428/