JMeter中的第一个HTTP请求花费很长时间 [英] First HTTP Request taking a long time in JMeter
问题描述
我为我的线程组设置了几个HTTP请求.我注意到第一个请求总是比其他任何请求花费更长的时间.我重新排序了请求,但问题仍然存在. 这使得很难分析响应时间.
I have a couple of HTTP Request setup for my Thread Group. I noticed that the first request is always taking longer than any other requests. I reordered my requests and the problem still persists. This is making it hard to analyse the response time.
JMeter是否存在已知问题?有解决方法吗?
Is it a known problem with JMeter? Is there a work around?
这是我的设置
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
推荐答案
这很可能是因为
服务器通常需要先进行热身,然后才能达到全速: 对于Java平台尤其如此,您肯定不会 想测量类的加载时间,JSP编译时间或本机时间 编译时间.
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页面得以编译,数据库工作集位于内存中,等等?
Are you allowing for some warm-up traffic to the servers under measurement first, to allow things to get in cache, JSP pages to compile, the database working set to be in memory, etc?
这篇关于JMeter中的第一个HTTP请求花费很长时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!