2 Replies Latest reply on Nov 28, 2011 4:19 AM by aldjinn

    Domain instance remote debugging

    aldjinn

      I'm running a JBoss 7 cluster with several instances. Now I want to remote debug a single instance but I don't know how to enable the remote debugging.

       

      There is the default conf "-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n" in the domain.conf file, but this seems to enable remote debugging for the domain controller, not for the running instances.

       

      I've tried to use the <system-properties> settings in the host.xml configuration file of the domain, but this doesn't work also.

       

      <system-properties>

         <property name="runjdwp:transport" value="dt_socket,address=8787,server=y,suspend=n"/>

      </system-properties>

       

      Any ideas?

        • 1. Re: Domain instance remote debugging
          jaikiran

          Check the host.xml. It has a commented out example for passing the debug options.

          • 2. Re: Domain instance remote debugging
            aldjinn

            Thanks for the hint, but the usage of

            <jvm name="default">

            <jvm-options>

              <option value="-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"/>

            </jvm-options>

            </jvm>

            now leads to the following problem:

            Exception in thread "Controller Boot Thread" java.lang.IllegalArgumentException: No interface named management exists

             

            This is strange because the management interface is configured:

             

            <interfaces>

            <interface name="management">

              <inet-address value="${jboss.bind.address.management:10.18.103.244}"/>

            </interface>

            <interface name="public">

              <inet-address value="${jboss.bind.address:10.18.103.244}"/>

            </interface>

            </interfaces>

             

            /edit: Seems to be a known bug: https://issues.jboss.org/browse/AS7-1606