Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VisualVM Calibration Step Hangs with Windows 10

Situation:

I have installed VisualVM 1.3.8 on my Windows 10 Anniversary Edition (and not using the one that came with the JDK 8).

I would like to use this to Profile a Java (Play) App.

What Happens:

When starting the CPU profiling, it first asks that I need to calibrate, and when that happens it hangs at the stage.

The Display showing the hanging

What I Have Tried:

I tried this on MacOS 8, and it does go through the calibration steps OK.

I have edited the etc/visualvm.conf to disable the d3d pipline feature.

visualvm_default_options="-J-Dsun.java2d.d3d=false -J-client -J-Xms24m -J-Xmx256m -J-XX:+IgnoreUnrecognizedVMOptions -J-Dnetbeans.accept_license_class=com.sun.tools.visualvm.modules.startup.AcceptLicense -J-Dsun.jvmstat.perdata.syncWaitMs=10000 -J-Dsun.java2d.noddraw=true"

The Goal:

Get the calibration process to complete.

like image 592
Manabu Tokunaga Avatar asked Oct 04 '16 17:10

Manabu Tokunaga


1 Answers

I've found a mailing list entry describing the same problem.

The solution is to start VisualVM from command-line using:

jvisualvm.exe "-J-Dorg.netbeans.profiler.separateConsole=true"
like image 81
Daniel Beer Avatar answered Oct 05 '22 07:10

Daniel Beer