gstackoverflow
gstackoverflow

Reputation: 37034

How to enable tracing profiling in jvisualvm?

I've read that jvisualVm can do tracing profile.

So I ran jvisualVm on my local pc and I see following: enter image description here

According the materials I read that jvisualVm allows to use tracing profiling on Profiler tab and it must look like:

enter image description here

But as you can see I don't have it. I tried to find button to show that tab but I was not successful.

How can I enable it?

P.S.

According the @Alexandar Petrov answer I tried to add plugun manually so I visited https://visualvm.github.io/uc/release14/updates.html and downloaded Tracer-JVM Probes The next step was to add file I downloaded:

enter image description here

but when I select file and click open - nothing happens - neither error nor anything else.

Upvotes: 5

Views: 1454

Answers (1)

Alexander Petrov
Alexander Petrov

Reputation: 9492

Go to https://visualvm.github.io/plugins.html you will find the Tracer plugin there.

Here is a download link with all plugins for Java 8. What you need to download is under Tracer probes. The one that you 100% need is Tracer-JVM Probes the rest is optional.

https://visualvm.github.io/uc/8u131/updates.html

After you donwload you need to go to Tools->Plugins->Downloaded->Add Plugin and select the nbm file with the tracer plugin. When you do that you will get a screen where it gives you the list of the dependencies. You need to download all the dependencies and select them together with the plugin for installation as it is showed on this screenshot: enter image description here

After you have installed it the java visual VM will get restarted and you will be able to see the tracer in a separate tab. Here is my screen notice tha tracer tab besides the Sampler tab:

enter image description here

Upvotes: 3

Related Questions