VisualVM校准步骤与Windows 10挂起 [英] VisualVM Calibration Step Hangs with Windows 10
问题描述
情况:
我在Windows 10周年纪念版上安装了VisualVM 1.3.8(而不是使用JDK 8附带的版本)。
I have installed VisualVM 1.3.8 on my Windows 10 Anniversary Edition (and not using the one that came with the JDK 8).
我想用它来描述一个Java(Play)应用程序。
I would like to use this to Profile a Java (Play) App.
发生了什么:
启动CPU分析时,它首先要求我校准,当发生这种情况时,它会挂起。
When starting the CPU profiling, it first asks that I need to calibrate, and when that happens it hangs at the stage.
我尝试过的事情:
我在MacOS 8上试过这个,它确实经过了校准步骤。
I tried this on MacOS 8, and it does go through the calibration steps OK.
我编辑了etc / visualvm.conf以禁用d3d pipline功能。
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.ja va2d.noddraw = true
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"
目标:
完成校准过程。
推荐答案
我找到了一个邮件列表条目描述同样的问题。
I've found a mailing list entry describing the same problem.
解决方案是使用以下命令从命令行启动VisualVM:
The solution is to start VisualVM from command-line using:
jvisualvm.exe "-J-Dorg.netbeans.profiler.separateConsole=true"
这篇关于VisualVM校准步骤与Windows 10挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!