VisualVM:CPU/内存分析器卡在“正在连接到目标 JVM..."; [英] VisualVM: CPU/Memory profiler stuck at "Connecting to the target JVM..."

查看:101
本文介绍了VisualVM:CPU/内存分析器卡在“正在连接到目标 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?

推荐答案

查看此错误报告 - VISUALVM-637

解决方案:使用以下命令启动 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆