WildFly integration
For general setup guidance, refer to the Application Agent page.
The Application Agent's scanning algorithm does not fully support WildFly's modular architecture, which means it does not work for detecting application classes after deployment.
As a result, paths to application archives (JAR/WAR/EAR) must be specified directly in the agent parameters:
Copy the Drill4J agent files into the
wildfly/bin/agentdirectory.Ensure that all the necessary files from Drill4J are present, including the
drill_agent.dll(orlibdrill_agent.sofor Linux).Modify the WildFly startup configuration:
For Windows, edit the
bin/standalone.conf.batfile. On Linux, modify thebin/standalone.conffile.Add the following line to the configuration file:
Windows:
Linux:
This ensures that WildFly will load the Drill4J agent when the server starts.
The
-Djboss.modules.system.pkgs=com.epam.drilloption allows WildFly to load classes from thecom.epam.drillpackage, enabling proper integration with the Drill4J agent. Without it, the agent may not function correctly due to class loading restrictions.Configure the agent to scan your application:
In the
drill.propertiesfile (located in the agent's directory), add thescanClassPathparameter to point to the application archive (WAR or EAR) you want to monitor. For example:Restart WildFly and verify:
After modifying the configuration and properties files, restart WildFly. Drill4J should now detect the classes in your WAR or EAR application and start sending data.
This setup ensures Drill4J is correctly integrated with your WildFly server, allowing Application Agent to detect the application classes.
Troubleshooting#
- If the agent isn't detecting your application, verify that the correct
scanClassPathis set in thedrill.propertiesfile. - Ensure the agent is correctly loaded by reviewing WildFly logs and checking the Troubleshooting section in the Drill4J documentation.
Limitations#
The Drill4J Application Agent cannot detect new applications deployed to WildFly while it is already running. To allow the Application Agent to detect new application classes, WildFly must be restarted.