Gatling j.n.ConnectException: Address already in use

 ̄綄美尐妖づ 提交于 2020-01-12 15:47:08

问题


When running simulations with Gatling I get the following exceptions:

j.n.ConnectException: Address already in use: no further information

Does this occur when the server tested against fails to respond or timeout? I want to make sure this is a exception thrown by the server and not by the client.


回答1:


I also encountered this problem running Gatling (with a lot of requests, > 100 RPS) on Windows. It seems Windows is running out of ephemeral ports to use. See this discussion in the user group forum. So this is not a problem with your system under test but with the machine running Gatling.

On Windows, you can see and change your ephemeral port range using the netsh command. You can use following commands to

  • see your currently configured IPv4 port range for TCP:

    netsh int ipv4 show dynamicport tcp
    
  • change the port range:

    netsh int ipv4 set dynamic tcp start=number num=range
    

E.g. I increased my ephemeral IPv4 TCP port range like so to resolve the problem:

netsh int ipv4 set dynamic tcp start=1025 num=57975


来源:https://stackoverflow.com/questions/45969010/gatling-j-n-connectexception-address-already-in-use

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