压测过程中修改注册表的方法

无论使用Jmeter还是Loadrunner,压测过程中都会出现一些错误,比如:

1、Jmeter做压力测试,报错:java.net.BindException: Address already in use: connect

2、LoadRunner:

Action.c(23): Error -27796: Failed to connect to server "59.110.212.228:9080": [10048] Address already in use
Try changing the registry value
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\tcpip\Parameters\TcpTimedWaitDelay to 30
and HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\tcpip\Parameters\MaxUserPort to 65534
and rebooting the machine
See the readme.doc file for more information

修改注册表的方法:

1、打开注册表:ctrl+r 输入regedit
2、进入-计算机\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
3、新建DWORD值,name:TcpTimedWaitDelay,value:30(十进制)设置为30秒
4、新建DWORD值,name:MaxUserPort,value:65534(十进制)最大连接数65534

5、重启服务器

6、loadrunner还需要设置一下:

在 run-time setting/browser emulation中将simulate a new user on each iteration  选项去掉(默认是选中的)

posted @ 2019-06-05 13:11  奔奔-武  阅读(811)  评论(0编辑  收藏  举报