mule - 远程 jprofiler 与 mule 的集成

标签 mule jprofiler

如何将在我的笔记本电脑中运行的 Jprofiler UI 集成到在远程服务器中运行的 mule 服务器。我已经在服务器盒中远程安装了 jprofiler 并尝试运行 jpenable 以连接到 mule 服务器,但它无法做到。这是我遇到的错误。

Connecting to org.mule.module.reboot.MuleContainerBootstrap start0 [9828] ... Please select the profiling mode: GUI mode (attach with JProfiler GUI) [1, Enter] Offline mode (use config file to set profiling settings) [2] 1 ERROR: Attaching is not supported: Unable to open socket file: target process not responding or HotSpot VM not loaded com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file: target process not responding or HotSpot VM not loaded at sun.tools.attach.LinuxVirtualMachine.<init>(LinuxVirtualMachine.java:100) at sun.tools.attach.LinuxAttachProvider.attachVirtualMachine(LinuxAttachProvider.java:63) at com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:195) at com.jprofiler.frontend.attach.c.b(ejt:265) at com.jprofiler.frontend.attach.c.a(ejt:252) at com.jprofiler.frontend.attach.c.a(ejt:222) at com.jprofiler.frontend.EnableApplication.a(ejt:118) at com.jprofiler.frontend.EnableApplication.g(ejt:81) at com.jprofiler.frontend.EnableApplication.main(ejt:238) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.exe4j.runtime.LauncherEngine.launch(Unknown Source) at com.install4j.runtime.launcher.Launcher.main(Unknown Source)

最佳答案

JVM 中的附加机制不是很可靠,有些情况会导致它失败,这超出了工具供应商的控制范围。

首先,检查 jpenable 是否以与您要分析的应用程序相同的用户身份运行。如果使用相同的用户没有效果,则必须将用于分析的 VM 参数添加到应用程序的启动命令中并重新启动它。

您可以通过调用在 JProfiler 中获取该参数

session ->集成向导->新建远程集成

并按照向导中的步骤操作。

关于mule - 远程 jprofiler 与 mule 的集成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20011677/

相关文章:

java - Mule ESB 在服务器上部署时不接受 SSL 证书,但在本地开发机器上运行良好

linux - 当我的 GUI 在 Windows 操作系统上时,如何在远程 Linux 服务器上使用 jprofiler 进行配置?

java - jProfiler 无法启动 JVM

java - 如何确认 JProfiler 代理已连接

java - Mule 表达语言和运算符

exception - 如何捕获 mule 流中的任何异常

java - 我如何使用 MEL 作为调用的方法参数创建静态字符串数组

mule - 使用 flow-ref 或使用 vm endpoints request-response 的私有(private)流有什么区别?

java - 如何使用触发器在 JProfiler 离线模式下进行分析时自动获取保留内存

java - JProfiler 可以在没有 GUI 的情况下运行吗?