不管使用Jmeter仍是Loadrunner,压测过程当中都会出现一些错误,好比:java
一、Jmeter作压力测试,报错:java.net.BindException: Address already in use: connect服务器
二、LoadRunner:tcp
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测试
修改注册表的方法:spa
一、打开注册表:ctrl+r 输入regedit
二、进入-计算机\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
三、新建DWORD值,name:TcpTimedWaitDelay,value:30(十进制)设置为30秒
四、新建DWORD值,name:MaxUserPort,value:65534(十进制)最大链接数65534.net
五、重启服务器orm
六、loadrunner还须要设置一下:server
在 run-time setting/browser emulation中将simulate a new user on each iteration 选项去掉(默认是选中的)ip