Skip to content

Commit d213a4d

Browse files
authored
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)
1 parent e0a842c commit d213a4d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packaging/systemd/cloudstack-agent.default

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ JAVA_CLASS=com.cloud.agent.AgentShell
2323

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

packaging/systemd/cloudstack-management.default

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ BOOTSTRAP_CLASS=org.apache.cloudstack.ServerDaemon
2626
#You can change the parameters at your will. The 'address' field defines the port to be used. #
2727
################################################################################################
2828
# This option here should be used with 'systemmd' based operating systems such as CentOS7, Ubuntu 16, and so on.
29-
#JAVA_DEBUG="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n"
29+
#JAVA_DEBUG="-agentlib:jdwp=transport=dt_socket,address=*:8000,server=y,suspend=n"
3030

3131
# On the other hand, this option is used by CentOS6.
32-
#JAVA_DEBUG="-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
32+
#JAVA_DEBUG="-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"

0 commit comments

Comments
 (0)