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

无论使用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_MACHINESystemCurrentControlSetServices cpipParametersTcpTimedWaitDelay to 30
and HKEY_LOCAL_MACHINESystemCurrentControlSetServices cpipParametersMaxUserPort to 65534
and rebooting the machine
See the readme.doc file for more information

修改注册表的方法:

1、打开注册表:ctrl+r 输入regedit
2、进入-计算机HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters
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  选项去掉(默认是选中的)

原文地址:https://www.cnblogs.com/benben-wu/p/10979008.html