本文介绍了JMeter中的第一个HTTP请求花费很长时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为我的线程组设置了几个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

推荐答案

这很可能是因为

http://nico.vahlas.eu/2010/03/30/some-thoughts-on-stress-testing-web-applications-with-jmeter-part-2/

您是否首先允许到被测服务器的预热流量,以使事物进入缓存,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请求花费很长时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-22 06:52