Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Need Java profiler tool

I have to do profiling of the Java application. I would appreciate if anyone let me know the free Java pr-filer. I heard about YourKit but don't know much about performance of it. Alos like the information on Java code optimization. Thanks in advance.

Thanks

like image 386
CrazyC Avatar asked Feb 27 '23 12:02

CrazyC


1 Answers

I recommend JVisualVM. It's shipped as part of the JDK. You can find it in the bin folder, or you can download it here.

You can use it to monitor in which methods your app spends it time, but you can also look at threads and memory usage. It can also create heap dumps, which you can then analyze with VisualVM itself, or with the excellent (and also free) Memory Analyzer (MAT).

like image 137
jqno Avatar answered Mar 02 '23 17:03

jqno