1

我的加特林模拟遇到了一个新问题。当我在本地从 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 请求,它就会成功完成而没有问题。

所以我的问题是是什么导致了热身完成和模拟开始之间的 90 年代延迟?

如果重要,这里是 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>

4

0 回答 0