JMeter 3.1: different results in GUI mode and non-GUI mode

為{幸葍}努か 提交于 2020-02-08 03:36:10

问题


I know load tests should be run in non-GUI mode.

But when I run the tests with the following command:

jmeter -n -t server_load_test.jmx -l log_100u_5s_01.jtl

In non-GUI mode: I get an average response time between 3 or 4 seconds which of course is not acceptable.

In GUI mode: I get an average response time of 100ms.

The test is really simple, it is just an HTTP request (GET) with 100 users in 5 seconds.

I would not have said anything if it was the other way around.

Which one should I trust?
My question is more: what is going on and how do I find the problem?


回答1:


Non-GUI mode consumes a way less resources that GUI mode so I would recommend looking not only into Average Response Time, but also keep in mind other important metrics, for example check delivered load in both scenarios, i.e:

  • Active Threads Over Time and Transactions per Second listeners output (both are available via JMeter Plugins project
  • Generate HTML Reporting Dashboard and compare the output for both scenarios
  • Use 3rd-party analysis solution like JAnalyser or BM.Sense

My expectation is that in GUI mode you have much slower ramp-up hence you can run into the situation when some threads already had already finished their work while others were not yet started. In non-GUI ramp-up is faster so you have more online users so the load delivered to your application under test is much higher.

Try increasing loop count and test duration to see how it goes.



来源:https://stackoverflow.com/questions/41832792/jmeter-3-1-different-results-in-gui-mode-and-non-gui-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!