Skip to content

Instantly share code, notes, and snippets.

@juliojsb
Created March 23, 2016 22:19
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juliojsb/fcfced0290d25049b09d to your computer and use it in GitHub Desktop.
Save juliojsb/fcfced0290d25049b09d to your computer and use it in GitHub Desktop.
Enable remote debugging in Jboss
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>
@Vomitory1
Copy link

Vomitory1 commented Sep 18, 2018

in wich file could add this line
-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n
if i am using standalone mode?

@Naga-raj02
Copy link

I have the Jboss server with standalone.xml . There is no host.xml available to modify. Please advise how to enable debugging

@mhicauber
Copy link

mhicauber commented Dec 13, 2018

@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

@TheGabiRod
Copy link

-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