Java Agent Installation: Enable APM+ for Play Framework

If you have not already installed an agent on a server where your app lives, please see our Installation Documentation. Once the agent has been installed, please follow the steps below depending on your version of the Play Framework.

Play Framework 1.2.x-1.4.x

Before running your application, enter the following command:

export JAVA_OPTS='-javaagent:/usr/local/stackify/stackify-java-apm/stackify-java-apm.jar'

Then start the app:

./play run {app_name}

Play Framework 2.x+

Run the application with the following argument:



sbt run -J-javaagent:/usr/local/stackify/stackify-java-apm/stackify-java-apm.jar