VisualVM:CPU/内存分析器卡在“正在连接到目标 JVM..."; [英] VisualVM: CPU/Memory profiler stuck at "Connecting to the target JVM..."
问题描述
我最近重新安装了 Windows,并且使用带有内置 VisualVM 的 JDK 1.8 u91.我已经检查了我的代理设置,以确保它们在 Windows 代理设置和 VisualVM 的代理设置中都已关闭.
I have recently reinstalled Windows and I am using JDK 1.8 u91 with the built-in VisualVM. I have checked my proxy settings to ensure that they are all off, both in Windows proxy settings and within the proxy settings of VisualVM.
我也尝试过重新安装JDK、重新启动计算机、重新安装Windows.我只安装了一个 JDK,并且类路径设置为 Windows 中 JDK 的 bin 文件夹.
I have also tried reinstalling JDK, restarting computer, reinstalling Windows. I only have one JDK installed and the classpath is set to the JDK's bin folder in Windows.
除 CPU 和内存分析之外的所有功能都在 VisualVM 中工作.我的应用程序是从 IntelliJ 运行的,但我也尝试过从命令行定期运行应用程序,而 VisualVM 也无法连接到这些应用程序.
All features besides CPU and memory profiling work in VisualVM. My application is ran from IntelliJ, but I have also tried running applications regularly from command line and VisualVM cannot connect to those either.
我也试过从 http://visualvm.java.net 下载 VisualVM,这也不起作用.
I have also tried downloading VisualVM off http://visualvm.java.net which also does not work.
我没有安装插件.
为什么挂了?这是新 JDK 引入的错误吗?
Why does it hang? Is this is a bug introduced with the new JDK?
推荐答案
解决方案:使用以下命令启动 JVisualVM:
Solution: start JVisualVM using below command :
jvisualvm.exe -J-Dorg.netbeans.profiler.separateConsole=true
我已经在 Windows 10 X64 上用 Java 版本1.8.0_102"检查了这个(它可以工作!)
I've checked this (and it works !) at Windows 10 X64 with java version "1.8.0_102"
这篇关于VisualVM:CPU/内存分析器卡在“正在连接到目标 JVM...";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!