【问题标题】:How to unintegrate jprofile with netbeans如何将 jprofiler 与 netbeans 集成
【发布时间】:2011-10-31 03:54:38
【问题描述】:

我安装了 jprofile 来调查内存泄漏,还单击了将 IDE 与 netbeans 6.9.1 集成。单击配置文件项目时运行我的 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 的集成?

注意:我已经删除了整个“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

【问题讨论】:

    标签: ide netbeans-6.9 jprofiler


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-01-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-07
      • 2011-12-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多