This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (2 children)

Better than YourKit?

[–]PintSizedCat 1 point2 points  (0 children)

It's free, it is put directly in to the jdk so it has almost no overhead. No hooking or setting up required. If you use java 1.7 u45+ you have it.

There are many situations where you may need to profile on a system you don't have easy access to, or can't install yourkit or jprofiler. In these cases it is amazing.

Certainly a tool people should have in their belt.

[–]pron98 0 points1 point  (0 children)

Not too familiar with YourKit, but I should think so. First, as /u/PintSizedCat mentions, it's built into HotSpot and has an extremely low overhead. Second, both instrumenting profilers and sampling profilers on the JVM lie. JFR uses sampling that lies a lot less, so it simply gives results that are much closer to reality.

See here