java.io.IOException的加特林检查:远程关闭 [英] Gatling check for java.io.IOException: Remotely closed

查看:230
本文介绍了java.io.IOException的加特林检查:远程关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在加特林进行测试时,出现以下错误

While doing a test in gatling I get the following error

java.io.IOException: Remotely closed

这是预期的(服务器断开连接).如何标记测试成功或检查该异常?

which is expected (server cuts connection). How do I mark the test success or check for that exception?

推荐答案

此异常意味着当客户端(Gatling)尝试在其上写入数据时,服务器关闭了连接.

This exception means that the server closed the connection when the client (Gatling) was trying to write on it.

这可能表明您必须调整保持活动的超时时间以使其与典型的用户思考时间不匹配,但是此类事件将始终发生.

This might be in indication that you have to tune your keep-alive timeout to NOT match typical user think time, but such event will always happen.

但是,然后,如果出现这种故障,Web浏览器将重试发送请求.

But then, web browsers retry sending the request in case of such a failure.

加特林也可以做到这一点,但目前已禁用(默认在2.1.6中启用).在此之前,您可以在gatling.conf中更改maxRetry的值.

Gatling can do that too, but it's disabled for now (will be enabled by default in 2.1.6). Until then, you can change the maxRetry value in gatling.conf.

这篇关于java.io.IOException的加特林检查:远程关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆