Enable remote debug port in jboss server2 min read

Prabhin Prabharkaran Administrator
DevOps Engineer

He is a Technical professional. He is a person who loves to share tricks and tips on the Internet. He Posts what he does!

follow me

how to enable remote debug port in jboss

Hi All, In this document it shows how to enable remote debug port in jboss. Debug port is necessary for developers to identify the issues on application.
It’s not recommended to enable debug port in production system.

jboss

Red Hat JBoss Middleware is a portfolio of enterprise-class application and integration middleware software products delivered by Red Hat, Inc. These software products are used by end users to create applications; integrate applications, data, and devices; and automate business processes. Red Hat JBoss Middleware uses an open-source development model.

Configure JBoss
First, to enable JBoss to allow remote debugging, edit your <jboss install location>/bin/standalone.conf. Now, look for # JAVA_OPTS=”$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n” and uncomment it. It should be near the bottom.

If you are on Windows, you’ll need to edit standalone.conf.bat instead and uncomment rem set “JAVA_OPTS=%JAVA_OPTS% -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n”

Start Jboss. You should now see something like this at the top of the output

=========================================================================

JBoss Bootstrap Environment

JBOSS_HOME: /opt/jboss-as-7.1.1.Final

JAVA: java

JAVA_OPTS: -d32 -client -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true
-Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman
-Djava.awt.headless=true -Djboss.server.default.config=standalone.xml
-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n

JBoss Bootstrap Environment

JBOSS_HOME: /opt/jboss-as-7.1.1.Final

JAVA: java

JAVA_OPTS: -d32 -client -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true
-Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman
-Djava.awt.headless=true -Djboss.server.default.config=standalone.xml
-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n

© 2018, Techrunnr. All rights reserved.

#1
#2
#3
Questions Answered
Articles Written
Overall Points

Related posts

Leave a Reply