The KB explains the steps to take to configure the JavaAgent with Wildfly Application server running in domain mode.
Wildfly console:
Techdocs - DX O2 Java Agent Wildfly configuration