Tools to automate FlameGraph Generation
Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
FlameGraphs.jmx
LICENSE
README.md
Vagrantfile
configure.sh
copy-flamegraph-to-host.sh
flamegraph.svg
generate-flamegraph.sh
tomcat7

README.md

perf

Vagrantfile, scripts, and JMeter test plan, illustrating how to generate mixed mode java flame graphs for Tomcat. This accompanies my blog post. See the Java in Flames post on the Nextflix blog for more information.

Prerequisites

Need VirtualBox and Vagrant installed. Require JMeter 3.1+ to apply load to Tomcat, which requires Java JRE.

Spinning up VM

git clone https://github.com/jerometerry/perf.git

cd ./perf

vagrant up

Generate Load

Open JMeter, and load the FlameGraph.jmx test plan, then hit the run button (might need to tweak test plan based on your setup).

Generating Flame Graph

vagrant ssh

sudo ./generate-flamegraph.sh
./copy-flamegraph-to-host.sh

exit

Output

flamegraph.svg should be copied from the VM to the perf folder you cloned this repo into.