我使用jprofiler 7.2.2,app server(JBoss)运行java 1.6.0_30。同一个用户用于启动JBoss和JProfiler。
我执行jpenable,选择离线模式,提供我的设置文件,然后处理失败并出现两个不同的错误:
Using the single session in the config file.
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:266)
at com.jprofiler.frontend.attach.c.a(ejt:253)
at com.jprofiler.frontend.attach.c.a(ejt:223)
at com.jprofiler.frontend.EnableApplication.b(ejt:157)
at com.jprofiler.frontend.EnableApplication.g(ejt:83)
at com.jprofiler.frontend.EnableApplication.main(ejt:237)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.install4j.runtime.launcher.Launcher.main(Unknown Source)
和
Using the single session in the config file.
java.io.IOException: Premature EOF
at sun.tools.attach.HotSpotVirtualMachine.readInt(HotSpotVirtualMachine.java:226)
at sun.tools.attach.LinuxVirtualMachine.execute(LinuxVirtualMachine.java:193)
at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMachine.java:40)
at sun.tools.attach.HotSpotVirtualMachine.loadAgentPath(HotSpotVirtualMachine.java:70)
at com.jprofiler.frontend.attach.AgentLoader.a(ejt:26)
at com.jprofiler.frontend.attach.c.b(ejt:266)
at com.jprofiler.frontend.attach.c.a(ejt:253)
at com.jprofiler.frontend.attach.c.a(ejt:223)
at com.jprofiler.frontend.EnableApplication.b(ejt:157)
at com.jprofiler.frontend.EnableApplication.g(ejt:83)
at com.jprofiler.frontend.EnableApplication.main(ejt:237)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
有什么想法吗?感谢