【问题标题】:How to profile an app on a remote server using the jprofiler plugin for Intellij Idea如何使用 Intellij Idea 的 jprofiler 插件在远程服务器上分析应用程序
【发布时间】:2020-08-21 13:37:04
【问题描述】:

我有 Intellij Idea 2020、JProfiler 和 IDEA 的 jprofiler 插件。在远程服务器上,有一个 WildFly 15 正在运行该应用程序。目前,standalone.conf 包含通过 jmx for jconsole 连接的键

-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=9010
-Dcom.sun.management.jmxremote.rmi.port=9010
...

我想使用 Idea 中的 JProfiler 对应用程序进行分析,但我没有找到任何关于如何在任何地方启用分析的明确说明。据我了解,我需要将 JProfiler 的某些部分解压缩到服务器并将密钥添加到 JVM 的standalone.conf 中?以及如何从 Idea 连接到配置文件的服务器?如果您有分步说明,我将不胜感激

【问题讨论】:

标签: java intellij-idea wildfly jprofiler


【解决方案1】:

在 IDEA 中添加远程 WildFly 运行配置,然后在运行配置对话框中激活“启动/连接”选项卡并选择“JProfiler”运行类型。现在对话框显示说明并为您提供代理 VM 参数,您必须将其插入到远程端的启动脚本中。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-23
    • 1970-01-01
    • 2021-05-09
    • 2014-05-22
    相关资源
    最近更新 更多