mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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:
parent
e0a842cf3a
commit
d213a4d956
@ -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"
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user