Help APM Add Java Agent Install Java agent on Wildfly

Installing Java Agent in Wildfly 8.x and above

Installing Java Agent in WildFly 8.x & above

  1. Extract the zip file to a new directory to find agent jar and its configuration files
  2. Open apminsight.conf file in any text editor and add license.key value, which can be obtained from Site24x7 APM Insight page. Refer here to fine tune the agent settings.
  3. For Standalone setup:
    Edit <WILDFLY_HOME>/bin/standalone.conf.bat (In Linux, standalone.conf) file to add the following java arguments to the existing JAVA_OPTS
    -Djboss.modules.system.pkgs=org.jboss.byteman,com.manageengine -javaagent:<agent_directory_full_path>/apminsight-javaagent.jar
  4. For Domain setup:
    Edit <WILDFLY_HOME>/domain/configuration/Host.xml file and locate <servers> tag and add the mentioned tags under your desired <server name="your_server" ...> tag
    <system-properties>
    <property name="jboss.modules.system.pkgs" value="org.jboss.byteman,com.manageengine" boottime="true" />
    </system-properties>
    <jvm name="insight">
    <jvm-options>
    <option value="-javaagent:<agent_directory_full_path>/apminsight-javaagent.jar" />
    </jvm-options>
    </jvm>
  5. Save the file and start the Wildfly server
Was this document helpful?
Thanks for taking the time to share your feedback. We’ll use your feedback to improve our online help resources.

Help APM Add Java Agent Install Java agent on Wildfly