This buildpack will add the shared library to be used as the JProfiler agent to be loaded by the JVM. This allows JProfiler to be used to profile the Java application running on Heroku.
Add buildpack:
$ heroku buildpacks:add https://github.com/ignitionworks/heroku-jprofiler-buildpack --app YOUR_APP
Modify your JAVA_OPTS to include:
-agentpath:jprofiler/bin/linux-x64/libjprofilerti.so=port=8849,nowait
See JProfiler docs for more details.
Forward the port:
$ heroku ps:forward 8849 --app YOUR_APP
Then connect JProfiler