【问题标题】:java.util.concurrent.TimeoutException: Request timed out to in gatlingjava.util.concurrent.TimeoutException:请求超时到加特林
【发布时间】:2015-01-30 19:36:59
【问题描述】:

您好,我在 200 秒内同时运行 200 个并发用户,当我在 2-3 组后执行相同的脚本时出现此错误,我是否需要在 gatling 中进行一些设置,例如 conf 文件中的 shareConnections 或其因为服务器无法响应更多请求。

class  LoginandLogout extends Simulation {

val scn = scenario("LoginandLogout")
        .exec(Login.open_login)
        .pause(Constants.SHORT_PAUSE)
        .exec(CommonSteps.cscc_logout_page)
    setUp(scn.inject(rampUsers(200) over (200 seconds))).protocols(CommonSteps.httpProtocol)
}

我正在使用 gatling 2.0.0-RC5 scala 2.10.2

【问题讨论】:

    标签: scala stress-testing gatling


    【解决方案1】:

    为什么要责怪信使?如果您有请求超时,那是您的 SUT 的错。负载测试不是试图调整注入器以获得最佳数据,而是找出可能的性能问题。你刚刚找到了一个。

    当您尝试模拟 Web API 客户端(例如调用 SOAP 或 RESTful Web 服务的程序)时,使用 shareConnections 很有意义。如果您尝试模拟网络浏览器,则不会。

    我正在使用 gatling 2.0.0-RC5 scala 2.10.2

    你真的应该升级!从那时起,请查看the release notes,如果您不相信的话。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-19
      • 1970-01-01
      • 1970-01-01
      • 2011-02-26
      • 1970-01-01
      相关资源
      最近更新 更多