Netbeans Profiler:永久连接到目标虚拟机 [英] Netbeans Profiler: Connecting to the target vm forever

查看:76
本文介绍了Netbeans Profiler:永久连接到目标虚拟机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将Netbeans探查器附加到我的Java项目中,但是它被卡在连接到目标虚拟机上.

I am trying to attach the Netbeans profiler to my Java project but it get stucked with Connecting to the target vm.

我发现了这个旧错误报告,但该问题已得到解决.我的版本是在Windows 7上使用Java 1.7.0_04的7.1.2.

I found this old bug report but that is already fixed. My version is 7.1.2 with Java 1.7.0_04 on windows 7.

我试图禁用防火墙并以管理员身份启动Netbeans,但仍然遇到相同的问题.

I tried to disable the firewall and start Netbeans as administrator but still i got the same problem.

有点奇怪的是,校准工作正常.

A bit strange is that calibration works fine.

我感觉这是Java 7的问题.因为如果我查看 profiler \ lib \ deployed ,将没有jdk17文件夹.只有jdk16和jdk15.

I have the feeling it's a problem with Java 7. Because if I have look into profiler\lib\deployed there is no jdk17 folder. Only jdk16 and jdk15.

有什么想法吗?

推荐答案

我发现,如果动态附加分析器,该分析器也可以工作.因此,您必须首先启动应用程序(带有断点).然后,单击Profile> Attach Profiler....在顶部选择您的项目,并附加一个本地动态Profiler.如果创建的错误,则可以在附加探查器"对话框的底部进行更改.现在选择正在运行的进程即可.

I found out the profiler works if I attach it dynamically. Therefor you have to start the application first (with a break point). Then you click Profile > Attach Profiler... In the top select your project and attach a local dynamical profiler. If you already created the wrong one you can change it at the bottom of the Attach Profiler dialog. Now select the running process and that's it.

这篇关于Netbeans Profiler:永久连接到目标虚拟机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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