zoukankan      html  css  js  c++  java
  • 解决Windows jmeter Non HTTP response message: Address already in use: connect 错误(转载)

    jMeter报错:

    Response code: Non HTTP response code: java.net.BindException
    Response message: Non HTTP response message: Address already in use: connect

    原因:

    When an HTTP request is made, an ephemeral port is allocated for the TCP / IP connection. The ephemeral port range is 32678 – 61000. After the client closes the connection, the connection is placed in the TIME-WAIT state for 60 seconds.

    If JMeter (HttpClient) is sending thousands of HTTP requests per second and creating new TCP / IP connections, the system will run out of available ephemeral ports for allocation.

    Otherwise, the following messages may appear in the JMeter JTL files:

    Non HTTP response code: java.net.BindException
    Non HTTP response message: Address already in use

    The solution is to enable fast recycling TIME_WAIT sockets.

    就是处于等待的60s的临时端口不够用了,解决方法就是降低TIME_WAIT时间

    方法:

    打开注册列表
    HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters

    右击Parameters -> 新建 -> DWORD(32位)值(D) -> name:TcpTimedWaitDe,value:30    –> 设置为30秒,默认是240秒
    右击Parameters -> 新建 -> DWORD(32位)值(D) -> name:MaxUserPort,value:65534(十进制) –> 设置最大连接数65534

    最后重启电脑

    转自:https://blog.csdn.net/shuaifanpi/article/details/89137165

  • 相关阅读:
    【扫盲】i++和++i的区别
    java 字符串String.intern()方法学习
    随机访问和快速访问
    Semaphore信号量深度解析
    CyclicBarrier回环屏障深度解析
    CountDownLatch深度剖析
    静态代理和装饰者模式的区别
    AspectJ之@DeclareParents注解为对象添加新方法
    C#开发上位机常用
    使用Charles进行抓包、篡改请求、设置代理
  • 原文地址:https://www.cnblogs.com/wx170119/p/11996897.html
Copyright © 2011-2022 走看看