加特林模拟应该在适当的时候开始

时间:2019-02-09 01:41:51

标签: gatling intellij-plugin scala-gatling gatling-plugin

我的加特林(Gatling)模拟遇到了一个新问题。当我从IntelliJ本地运行它时,它将启动,然后等待90秒,然后再开始仿真。使用TRACE,这是控制台输出:

16:57:07.171 [INFO ] i.g.h.e.HttpEngine - Warm up done
================================================================================
2019-02-08 16:57:10                                           5s elapsed
---- Requests ------------------------------------------------------------------
> Global                                                   (OK=0      KO=0     )
---- myScenario ---------------------------------------------------
[                                                                          ]  0%
          waiting: 1      / active: 0      / done: 0     
================================================================================
<continue waiting for 90 seconds...>
================================================================================
2019-02-08 16:58:35                                          90s elapsed
---- Requests ------------------------------------------------------------------
> Global                                                   (OK=0      KO=0     )
---- myScenario ---------------------------------------------------
[                                                                          ]  0%
          waiting: 1      / active: 0      / done: 0     
================================================================================
16:58:35.966 [DEBUG] i.g.h.c.HttpCaches - HTTP/2 disabled
Simulation com.test.MySimulations started...
16:58:36.301 [TRACE] i.g.app.Runner - Asking Controller to start

一旦模拟开始,这只是1个HTTP请求,它将成功完成而不会出现问题。

所以我的问题是什么导致预热和仿真开始之间的90s延迟?

如果有关系,这里是pom.xml:

            <plugin>
                <groupId>io.gatling</groupId>
                <artifactId>gatling-maven-plugin</artifactId>
                <version>3.0.1</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>test</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

0 个答案:

没有答案