Java

Pyroscope uses async-profiler to collect profiling data from Java applications.

Supported platforms#

LinuxmacOSWindowsDocker

Installation#

Java integration is distributed as a single jar file: pyroscope.jar. It contains native async-profiler libraries for:

  • Linux on x64;
  • Linux on x86;
  • Linux on AArch64;
  • Linux on ARM;
  • MacOS on x64.

Visit our GitHub releases page to download the latest version of pyroscope.jar.

Profiling Java application#

To start profiling a Java application, run your application with pyroscope.jar javaagent:

export PYROSCOPE_APPLICATION_NAME=my.java.appexport PYROSCOPE_SERVER_ADDRESS=http://pyroscope-server:4040
java -javaagent:pyroscope.jar -jar app.jar

Examples#

Check out the examples folder in our repository to learn more 🔥