Created
March 23, 2016 22:19
-
-
Save juliojsb/fcfced0290d25049b09d to your computer and use it in GitHub Desktop.
Enable remote debugging in Jboss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For Jboss 4,5,6 AS and 6.x EAP standalone mode, append to your JAVA_OPTS the following option: | |
-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n | |
For Jboss 7.x AS/EAP 6.x in domain mode, in host.xml add the corresponding jvm option in the server group you need to debug: | |
<server name="server-one" group="main-server-group"> | |
<!-- Remote JPDA debugging for a specific server | |
<jvm name="default"> | |
<jvm-options> | |
<option value="-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"/> | |
</jvm-options> | |
</jvm> |
@MITHU0310 @MITHU0310 you can give a --debug option when launching bin/standalone.sh
See the comments and variables at the top of the bin/standalone.sh file
-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n
Must be carefull with spaces after commas or it won't work.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have the Jboss server with standalone.xml . There is no host.xml available to modify. Please advise how to enable debugging