VisualVM Calibration Step Hangs with Windows 10

和自甴很熟 提交于 2019-12-05 16:47:46

问题


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.


回答1:


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"


来源:https://stackoverflow.com/questions/39858872/visualvm-calibration-step-hangs-with-windows-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!