systemd: Binding listening socket to all address for remote debug (#4345)

Since Java 9 the notation 'address=port' only applies to localhost.
For remote debug you have to explicitly specify that you want to listen
to all IP addresses (e.g. address=*8000)
This commit is contained in:
slavkap 2020-09-29 09:56:14 +03:00 committed by GitHub
parent e0a842cf3a
commit d213a4d956
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -23,4 +23,4 @@ JAVA_CLASS=com.cloud.agent.AgentShell
#You can uncomment this if you want to enable Java remote debugging.
#Feel free to change the parameters at your will. The 'address' field defines the port to be used.
#JAVA_DEBUG="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n"
#JAVA_DEBUG="-agentlib:jdwp=transport=dt_socket,address=*:8000,server=y,suspend=n"

View File

@ -26,7 +26,7 @@ BOOTSTRAP_CLASS=org.apache.cloudstack.ServerDaemon
#You can change the parameters at your will. The 'address' field defines the port to be used. #
################################################################################################
# This option here should be used with 'systemmd' based operating systems such as CentOS7, Ubuntu 16, and so on.
#JAVA_DEBUG="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n"
#JAVA_DEBUG="-agentlib:jdwp=transport=dt_socket,address=*:8000,server=y,suspend=n"
# On the other hand, this option is used by CentOS6.
#JAVA_DEBUG="-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
#JAVA_DEBUG="-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"