A tool for generating flamegraphs for packaged applications
982
Docker image to package together tooling for generating Flame graphs based loosely on codecentric blog
Based on the official openjdk alpine docker image for Java 8.
This is available via Docker Hub
docker build -t sscaling/java-flamegraph .
docker run --rm -v $PWD:/source sscaling/java-flamegraph [java arguments] > flamegraph.svg
NOTE: Due to honest-profiler configuring the -agentpath property, this should not be specified in the java arguments
The output will be an SVG file written to stdout
You may find this useful to configure an alias, so this can be easily executed
$ alias javafg='docker run -v $PWD:/source sscaling/java-flamegraph'
$ javafg -cp target/myproject-1.0-SNAPSHOT.jar com.sscaling.test.TestApp > results.svg
You can configure the profiler interval with the PROFILER_INTERVAL environment variable. By default this is 7.
Content type
Image
Digest
Size
110.3 MB
Last updated
over 8 years ago
docker pull sscaling/java-flamegraph