1

我安装了 jprofile 来调查内存泄漏,还单击了将 IDE 与 netbeans 6.9.1 集成。单击 Profile Project 时运行我的 Web 应用程序运行良好,但是,当我想再次调试项目时,jprofile 仍在运行,而我只想调试 [即单击调试按钮而不是 Profile]。这会导致调试一直失败。

Glassfish 服务器输出控制台。

JProfiler> Protocol version 33
JProfiler> Using JVMTI
JProfiler> JVMTI version 1.1 detected.
JProfiler> 32-bit library
JProfiler> Listening on port: 33200.
JProfiler> Instrumenting native methods.
JProfiler> Can retransform classes.
JProfiler> Can retransform any class.
JProfiler> Native library initialized
JProfiler> VM initialized
JProfiler> Waiting for a connection from the JProfiler GUI ...

我没有说要配置文件,但此日志仍然显示在控制台中。我试图查看 jprofile 中的任何卸载或取消集成选项,但没有。但是在查看工具 > 插件菜单时,jprofile 也没有注册为插件。有没有办法取消集成 jprofile?

注意:我已经 grepped 了整个“C:\Program Files\Netbeans 6.9.1\”文件夹,并且已经删除了 jprofile 的 xml 配置以及“modules\”文件夹中的 jar。但是在重新启动netbeans并单击调试按钮后。它仍然显示 JProfiler 提示。1. \NetBeans 6.9.1\ide\config\Modules\com-jprofiler-integrations-netbeans.xml 2. \NetBeans 6.9.1\ide\update\backup\netbeans\config\Modules\com-jprofiler-integrations-netbeans .xml

4

1 回答 1

3

即使安装了 JProfiler 集成,调试也不应将用于分析的 VM 参数 (-agentpath) 附加到 java 命令,所以这听起来有点奇怪。

查看 %USERPROFILE%.netbeans\6.9\modules 目录并删除 com-jprofiler-integrations-netbeans.jar。如果该文件也不存在,则 -agentpath 参数以不同的方式添加,可能会在您的调试配置中显式添加。

于 2011-10-31T06:47:22.080 回答