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/agent
directory.Ensure that all the necessary files from Drill4J are present, including the
drill_agent.dll
(orlibdrill_agent.so
for Linux).Modify the WildFly startup configuration:
For Windows, edit the
bin/standalone.conf.bat
file. On Linux, modify thebin/standalone.conf
file.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.drill
option allows WildFly to load classes from thecom.epam.drill
package, 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.properties
file (located in the agent's directory), add thescanClassPath
parameter 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
scanClassPath
is set in thedrill.properties
file. - Ensure the agent is correctly loaded by reviewing WildFly logs and checking the Troubleshooting section in the Drill4J documentation.
#
LimitationsThe 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.