Which Java profiler to buy?

Apteris

Ars Tribunus Angusticlavius
9,593
Subscriptor
I'd like to buy a license for a Java profiler, both to have and use, and to improve my performance analysis skills.

YourKit, one of the two (as far as I know) big commercial profilers is currently on sale at $99 for a personal license instead of $499 for the cheapest one year license. The sale ends in two days.

JProfiler, the other big name, isn't on sale, and it too is $499 for a standard license.

I'd like to ask if anyone has used these two profilers and can provide some up-to-date information on how they compare. Googling for such doesn't give me very in-depth results. I like YourKit's price, but I'm looking at https://www.ej-technologies.com/product ... rview.html and https://www.ej-technologies.com/products/jprofiler/docs and seeing features in JProfiler (e.g. analyzing specific parts of the call tree) that I'm not sure have an equivalent in YourKit.

Any thoughts? Anyone who thinks I'm better off not getting either? I will be paying for this, so price is a factor.
 

gregatron5

Ars Legatus Legionis
13,010
Subscriptor++
Do you already use the tools available? The Oracle JDK (prior to version 12) has all sorts of neat stuff built in, like Java Flight Recorder. As of version 12, you need to use OpenJDK in order to get that stuff and not be subject to Oracle's new licensing scheme. I'd recommend seeing if the included tools are enough to do what you're looking to do before plunking down a wad of cash for another tool.
 

zeotherm

Ars Legatus Legionis
10,960
Moderator
I have been doing an identical analysis recently. My applications are Scala + Spark, and Spark specifically calls out YourKit, so I am leaning that way. Still working with our devops group to find a way to set this all up before we pull the trigger, but I did not find the 'built' in ones to be to my satisfaction (coming from a .NET and Fortran world).
 

Apteris

Ars Tribunus Angusticlavius
9,593
Subscriptor
Do you already use the tools available? The Oracle JDK (prior to version 12) has all sorts of neat stuff built in, like Java Flight Recorder. As of version 12, you need to use OpenJDK in order to get that stuff and not be subject to Oracle's new licensing scheme. I'd recommend seeing if the included tools are enough to do what you're looking to do before plunking down a wad of cash for another tool.
I use the existing tools to a degree; not an expert. Nevertheless, I feel I'd get more out of a product with "professional" features; it's part of how I learn.

Thank you zeotherm, noted.
 
Yourkit is pretty awesome, especially once you get into the use of automated snapshots using triggers, and the domain specific events using the Probe API.

The documentation for Yourkit is far, far too basic, but you can essentially run it on all your servers in production with no overhead and see how they've behaved in detail over the last hour or so. That's worth it by itself.
 

MilleniX

Ars Tribunus Angusticlavius
8,141
Subscriptor++
I'd already used up my YourKit trial period, but due to other priorities at the time I wasn't able to trial it properly.
In general, just about any tools vendor will be happy to extend a trial for some reasonable duration if you tell them exactly this. As long as it doesn't look like you're taking advantage of the trial to have it accessible precisely as relevant problems come up, they'd much rather you get a good look at their product and sign on long term. You'll be more likely to buy a license, and to tell other people that you've gotten good use out of it.
 
That's true. In my case, I'm learning the tool and the methods in my own time, so my usage was always going to be stop-and-start. The right deal for me, I guess.

Now all I need is a good load driving suite.

Assuming you're talking about a REST service, you can use Gatling simulations to drive your load with users and feeders:

https://theperformanceengineer.com/2016 ... -requests/