gpt4 book ai didi

mule - 远程 jprofiler 与 mule 的集成

转载 作者:行者123 更新时间:2023-12-03 19:34:31 26 4
gpt4 key购买 nike

如何将在我的笔记本电脑中运行的 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com