WildFly installation for Java

These directions for WildFly supplement the Java installation directions:

Domain mode

The JVM properties for each server group are found in domain/configuration/domain.xml.

The JVM properties for each server group must be modified to include the -javaagent flag.

<server-group name="main-server-group" profile="full">
  <jvm name="default">
      <option value="-javaagent:/full/path/to/newrelic.jar"/>

Be sure the -javaagent switch references the full path to the newrelic.jar file.

If you are installing on Windows, be sure to use forward slashes. For example: C:/newrelic/newrelic.jar.

Standalone mode

The -javaagent switch should always reference the full path to the newrelic.jar file.

Platform Directions

Unix / Mac OS

At the bottom of bin/standalone.conf, add this:

JAVA_OPTS="$JAVA_OPTS -javaagent:/full/path/to/newrelic.jar"


In bin/standalone.bat, find this line:

rem Setup JBoss specific properties

And add this:

set "JAVA_OPTS=-javaagent:C:/full/path/to/newrelic.jar %JAVA_OPTS%"

Use forward slashes: C:/newrelic/newrelic.jar.

For more help

Additional documentation resources include:

Join the discussion about Java monitoring in the New Relic Online Technical Community! The Technical Community is a public platform to discuss and troubleshoot your New Relic toolset.

If you need additional help, get support at support.newrelic.com.