Java – wildfly 8, remote debugging applications
•
Java
I need to debug y nodes remotely in JBoss 8 / wildly cluster (running two nodes on one machine)
For this, in our master-slave configuration, we configured two nodes:
<servers> <server name="node1" group="main-server-group" auto-start="true"> <jvm name="wicket" debug-enabled="false"> <heap size="1024m" max-size="1536m"/> <jvm-options> <option value="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8787"/> </jvm-options> </jvm> </server> <server name="node2" group="main-server-group" auto-start="true"> <jvm name="wicket" debug-enabled="false"> <heap size="1024m" max-size="1536m"/> <jvm-options> <option value="-Xdebug -Xrunjdwp:transport=dt_socket,address=8788"/> </jvm-options> </jvm> <socket-bindings port-offset="100"/> </server> </servers>
When I try to connect to each remote debug port now, IntelliJ tells me:
I can confirm that the node is started through the wildfly management panel
In addition, I have checked the machine running the node through telnet. It is impossible to log in remotely
Any help is well received If anyone has a useful wildfly profile linked to the correct file, it will be more appreciated
Thank you in advance
Solution
Got it Option values need to be separated
<jvm-options> <option value="-Xdebug "/> <option value="-Xrunjdwp:transport=dt_socket,address=8787"/> </jvm-options>
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码