【问题标题】:Profiling Mule Container and Application using JProfiler使用 JProfiler 分析 Mule 容器和应用程序
【发布时间】:2014-05-22 08:49:56
【问题描述】:

我正在尝试使用 Jprofiler 分析部署在 mule 容器 (CE v3.4) 上的 Mule ESB 应用程序,但到目前为止还没有成功。 我的 Mule 服务器在 linux 64 位服务器上远程运行,而 jprofiler 在我的本地 Windows 机器上运行。我正在尝试将本地 windows 机器上运行的 jprofiler 远程连接到 linux 服务器上远程运行的 Mule 服务器,但到目前为止,我还未能将本地运行的 jprofiler 连接到远程运行的 Mule 服务器。

以前有人做过吗?将我在本地运行的 jprofiler 连接到在某些不同服务器上远程运行的 Mule 服务器需要遵循哪些步骤?

感谢和问候 贾伊

【问题讨论】:

  • 感谢 Ingo 的评论。我可以远程连接到 Tomcat,但不能远程连接到 Mule 容器。我在这里的工作是连接到 Mule 容器并远程分析它。在 jprofiler 的 jpintegrate 集成向导中,我看不到列出的 Mule 服务器条目。应为 Mule 服务器选择 jpintegrate 列出的所有可用服务器类型中的哪个选项。 jpintegrate 列出了大约 30 多种可以集成的服务器类型,但我找不到 Mule 服务器的选项。
  • 只需使用通用集成向导,然后您可以手动将 VM 参数添加到服务器的 Java 调用中。
  • 我尝试使用通用集成向导并添加 -agentpath:/TivoData/jprofiler/jprofiler8/bin/linux-x64/libjprofilerti.so=port=8849,nowait 作为 java 调用的 VM 参数Mule 服务器,但我仍然无法将 Jprofiler 远程连接到 Mule 服务器。我认为问题在于 Mule Server 的设计以及它是如何为远程分析构建的。
  • 如果有人使用 Jprofiler 工具成功地远程分析了 MuleServer,我需要一个示例和步骤。

标签: profiling mule jprofiler


【解决方案1】:

将这些行添加到 conf/wrapper.conf:

wrapper.java.additional.4=-Dcom.sun.management.jmxremote.port=9999
wrapper.java.additional.5=-Dcom.sun.management.jmxremote.authenticate=false
wrapper.java.additional.6=-Dcom.sun.management.jmxremote.ssl=false

并将您的分析器连接到端口 9999

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多