Sunday, May 29, 2016

Profile a Java application in Linux

You can profile a Java application in Linux with `perf`.

Install `perf`:

yum install `perf`

Profile a Java application with the following command:

sudo perf record -g -p 1722

and press Ctrl + C after waiting for enough samples.

Create a report with the following command:

sudo perf report

and navigate it.

References:
http://www.evanjones.ca/java-native-leak-bug.html
http://superuser.com/questions/380733/how-can-i-install-perf-a-linux-peformance-monitoring-tool

No comments:

Post a Comment