The operating system will reserve a temporary port for TCP/IP services, and JMeter will start every thread (new operation) when running concurrency test
reason:
Windows reserves a temporary port for TCP/IP service. When JMeter runs concurrency test, every thread (new socket operation) will occupy a temporary port. If the TCP/IP port is occupied and not released in time (socket. Close() operation can not release the bound port immediately, but set the port to time_ Wait status, it will be released after a period of time, the default is 240s), and java.net.bindexception: address already in use: connect will appear.
resolvent:
To increase the number of ports reserved for TCP/IP service, it is necessary to operate on the system installed with JMeter. This paper introduces the solution on Windows system.
1. Key win + R, enter regedit to open the registry, or enter regedit command in CMD to open the registry;
2. Choose HKEY_ LOCAL_ MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters;
3. Right click parameters to create a new DWORD named maxuserport;
4. Then double-click maxuserport, select decimal base, input value data as 6553465534, which is the maximum value, exceeding The system uses the closest effective value (min 5000 or max 65534);
5. Right click parameters to create a new DWORD named TCPTimedWaitDelay;
6. Double click tcptimed waitdelay, select decimal base, input numerical data as 30, set time as 30 seconds, default is 240 seconds;
7. Restart the computer to take effect!!
div>
Read More:
- Eclipse port occupied( java.net.BindException : address already in use: bind) solution
- Error: JMeter monitors Linux system performance java.net.ConnectException : Connection timed out: connect
- JMeter performance test monitoring server resource reported error: java.net.ConnectException : Connection refused: connect
- Solution to the problem that listen TCP 0.0.0.0:3306: bind: address already in use port is occupied in Linux centos7
- How to Fix java.net.ConnectException: Connection refused: connect
- solve java.net.ConnectException : Connection refused:connect report errors
- Solve the java.net.connectexception: connection rejected: connect error
- Error running ‘Tomcat 9‘: Address localhost:1099 is already in use
- What should be paid attention to in socket programming — bind socket error: address already in use
- Failed to set up listener: socketexception: address already in use
- nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
- Error: listen eadrinuse: address already in use
- [exception] address already in use: bind
- Some error occurred error: listen eaddinuse: address already in use 127.0.0.1:3000
- How to solve oserror: [errno 98] address already in use and kill the python3 process
- How to use it RegAsm.exe Register C in a development / production environment#/ VB.NET Developed DLL
- Developing in Android java.net.SocketException : socket failed: eacces (permission denied) reported an error
- Error: transport error 202: bind failed: address already in use
- docker Error creating default “bridge“ network: failed to allocate gateway Address already in use
- Error starting userland proxy: listen TCP 0.0.0.0:9000: Listen: address already in use