Error content:
ERROR: transport error 202: bind failed: Address already in use: JVM_Bind Listening for transport dt_socket at addres
The cause of the error is obviously port occupation, but I have clearly changed the app_servers in the resin.properties file to a different port.
The reason
The reason is that I modified the jvm_args in the resin.properties file of one of the resins before in order to allow idea to debug the resin service remotely.
Original content
jvm_args : -Xmx4000m -Xms4000m -XX:ParallelGCThreads=20 -XX:+UseConcMarkSweepGC -XX:-OmitStackTraceInFastThrow -XX:+UseParNewGC -XX:+DisableExplicitGC -javaagent:wagent.jar -javaagent:stophotdeploy.jar -Djdk.tls.ephemeralDHKeySize=2048 -Dfile.encoding=GBK -javaagent:rasp/rasp.jar
I changed it to
jvm_args : -Xdebug -Xrunjdwp:transport=dt_socket,address=9081,server=y,suspend=n -Dcom.sun.management.jmxremote -Xloggc:/var/log/resin_gc.log
The other resin service still keeps the original content, so the two services cannot be started, and an error will be reported that the address port is occupied.
Solution:
The solution is to configure address= for both resins and set the port differently, or use the original default jvm_args.
Here use the method of configuring address= for both.
The first file.
jvm_args : -Xdebug -Xrunjdwp:transport=dt_socket,address=9081,server=y,suspend=n -Dcom.sun.management.jmxremote -Xloggc:/var/log/resin_gc.log
Second file
jvm_args : -Xdebug -Xrunjdwp:transport=dt_socket,address=9082,server=y,suspend=n -Dcom.sun.management.jmxremote -Xloggc:/var/log/resin_gc.log
Read More:
- [Solved] Heroku Error: Web process failed to bind to $PORT within 60 seconds of launch
- [Solved] Failed to bind properties under ‘spring.servlet.multipart.file-size-threshold‘ to
- Redis Startup Error: Creating Server TCP listening socket 127.0.0.1:6379: bind: No error
- [Solved] SpringBoot Startup Error: Description:Web server failed to start. Port 9090 was already in use.(win10)
- [Solved] Arthas failed to bind telnet or http port! Telnet port: 3658, http port: 8563;Error creating bean
- Error resolution: Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/Datatype
- [Solved] Error launching IDEA: Failed to create JVM. JVM Path…
- [Solved] IntelliJ IDEA Start Error: Failed to create JVM.JVM Path
- jemter java.net.BindException:Address alreardy in use [How to Solve]
- [Solved] Error running ‘myToncat‘: Address localhost:8080 is already in use
- [Solved] Error: caused by: java.net.bindexception: the address is already in use
- [Solved] nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter
- [Solved] Web server failed to start. Port 8080 was already in use.
- [Solved] Windows Redis Error: Could not create server TCP listening socket 127.0.0.1:6379: bind…
- [Solved] Tomcat startup error: sub-container startup failed
- How to compare the time in two TimeStamp format?
- Weibo API api Called Error: error:appkey not bind domain! error_code:10017/2/statuses/share.json
- IDEA was Filed to Start: error launching idea (Failed to create JVM )
- SpringBoot Startup Error: Failed to start component [Connector[HTTP/1.1-8080]]
- kafka Environment Build and Startup Error: ERROR [KafkaServer id=1] Fatal error during KafkaServer startup. Prepare to shutdown