Supported versions

  • 4.x
  • 5.x

Installation steps

  1. Download the latest Java agent from

    copy
    icon/buttons/copy
    wget https://atatus-artifacts.s3.amazonaws.com/atatus-java/downloads/latest/atatus-java-agent.jar
    
  2. Add the application name and license key in glassfish/domains/domain1/config/domain.xml file.

    copy
    icon/buttons/copy
    <java-config>
          ...
        <jvm-options>-javaagent:/path/to/atatus-java-agent.jar</jvm-options>
        <jvm-options>-Datatus.license_key="APM_LIC_KEY"</jvm-options>
        <jvm-options>-Datatus.app_name="YOUR_APP_NAME"</jvm-options>
    </java-config>
    

    Optional: Set your application package path to find exact source line in Java Exceptions.

    copy
    icon/buttons/copy
    <jvm-options>-Datatus.application_packages=<YOUR_PACKAGE_PATH></jvm-options>
    
  3. Restart your GlassFish server to view your performance data within minutes.