如何将我的笔记本电脑上运行的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)
发布于 2013-11-16 22:46:09
JVM中的附加机制不是很可靠,有可能导致它失败的情况超出了工具供应商的控制范围。
首先,检查jpenable是否以与您要分析的应用程序相同的用户身份运行。如果使用相同的用户没有效果,则必须将用于分析的VM参数添加到应用程序的启动命令中,然后重新启动应用程序。
您可以通过调用以下命令在JProfiler中获取该参数
会话->集成向导->新建远程集成
并遵循向导中的步骤。
发布于 2014-07-30 01:36:55
将权限更改为/usr/lib/jvm(设置为777)以进行探测
https://stackoverflow.com/questions/20011677
复制相似问题