WildFly version 11+ installation for Java

If you use WildFly version 11+, New Relic's Java agent requires additional configuration after you install it. You do not need this additional configuration for earlier supported WildFly versions.

  1. Before you configure the Java agent for WildFly version 11+, install the Java agent.
  2. Open the standalone configuration file appropriate for your operating system and add the -javaagent property to JAVA_OPTS. For example, if you use Linux, edit the /bin/standalone.conf file or /bin/standalone.conf.bat for Windows.

  3. Make the agent jar is visible to all JBoss modules by adding com.newrelic to the JBoss modules system packages using either these options in the standalone script:

    • Recommended: Option 1 (same as adding -javaagent property):

      JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS,com.newrelic
    • Option 2:

      if [ "x$JBOSS_MODULES_SYSTEM_PKGS" = "x" ]; then
  4. Restart your application server.

For more help

Recommendations for learning more: