Caused by: java.net.BindException: Address already in use
说明
I am trying to start a second Central Agent on the same server and below is the error message that I am getting with Stat 5.8.0 agent:
Caused by: java.net.BindException: Address already in use
原因
Http port 8080 has been taken by the first agent.
解决办法
The above message indicates that you are trying to use a default port that is already in-use. Make sure to read the upgrade guide pg 17-18 of how to use different offset. For example, if you want to use port 8081 then you need to change this:
1. Go to <STAT_HOME>/app/bin/standalone.conf. 2. Search for the setting -Djboss.socket.binding.port-offset=0 3. Change the setting to a proper offset. For example: -Djboss.socket.binding.port-offset=1 4. Save the page