Phenomenon:
reason:
Windows itself provides port access mechanism.
Windows provides TCP/IP link ports of 1024 ~ 5000, and it takes 4 minutes to recycle these ports. At this time, if we run a large number of requests in a short time, the ports will be full.
Solution:
win + r Enter regedit to open the registry Find the following path
Computer_ LOCAL_ MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
Right click parameters to create a new DWORD The name is maxuserport The value is 65534 (maximum 65535, set 65534 to prevent all ports from being occupied)
Right click parameters to create a new DWORD The name is TCPTimedWaitDelay Value is 30 (default unit is seconds)
Read More:
- [Solved] Error: caused by: java.net.bindexception: the address is already in use
- [Solved] Error running ‘myToncat‘: Address localhost:8080 is already in use
- Resin Failed to Startup Error: ERROR: transport error 202: bind failed: Address already in use: JVM_Bind Listenin (Two Resins in One PC)
- [Solved] kafka Error: java.net.UnknownHostException: kafkahost
- [Solved] Tomcat configurate HTTPS error: java.net.SocketException: Permission denied
- [Solved] port (127.0.0.1:64444): java.net.SocketException “Interrupted function call: accept failed“
- [Solved] hadoop Error: 9000 failed on connection exception java.net.ConnectException Denied to Access
- [Solved] openstack4j Startup Error: java.net.UnknownHostException: controller
- [Solved] kafka Error: java.net.UnknownHostException: ls-bptysztw
- The node requests the API address written by java to report an error error:getaddrinfo ENOTFOUND
- [Solved] Kafka in Windows error:java. nio. file. Filesystemexception: this file is in use by another program and cannot be accessed by the process
- [Solved] Hadoop failed on connection exception: java.net.ConnectException: Connection refused
- Solve the use of declaration transactions in spring java.lang.NoClassDefFoundError: org/aspectj/util/PartialOrder$PartialComparable
- java.net.SocketException: software caused connection abort: socket write error resolution (selenium)
- JAVA Error Illegal access: this web application instance has been stopped already. Could not load net.sf
- [Solved] Multithreading uses jsch to obtain a session for connection error: session.connect: java.net.socketexception: connection reset
- [Solved] failed on connection exception: java.net.ConnectException: Connection denied
- [Solved] IDEA springboot Startup Error: java.lang.UnsatisfiedLinkError: no tcnative-1 in java.library.path
- [Solved] Web server failed to start. Port 8080 was already in use.
- [Solved] java: Internal error in the mapping processor: java.lang.NullPointerException