Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wildfly domain mode debug

I have tried to configure widfly for remote debugging in domain mode, using Eclipse, but it's not successful. Does anyone know the detail configuration for Wildfly domain mode debugging with Eclipse. Thank you!

like image 742
nguyenbkcse Avatar asked Sep 13 '25 21:09

nguyenbkcse


1 Answers

It depends on what you want to debug :

  • to debug the Host Controller (that means the server that manages the domain) use the domain.conf file or set the environment variable PROCESS_CONTROLLER_JAVA_OPTS

    PROCESS_CONTROLLER_JAVA_OPTS="$PROCESS_CONTROLLER_JAVA_OPTS -agentlib:jdwp=transport=dt_socket,address=8788,server=y,suspend=n"

  • to debug a server instance of your domain you have to pass jvm args in your host.xml, for example too debug server-one

    <server name="server-one" group="main-server-group">
      <jvm name="default">
        <jvm-options>
            <option value="-agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=n"/>
        </jvm-options>
      </jvm>
    </server>

like image 199
ehsavoie Avatar answered Sep 17 '25 21:09

ehsavoie