简体   繁体   中英

Jprofiler Agent Install error Centos 7

I am trying to Install Jprofiler agent of Centos 7 64 bit with Java 8 and Tomcat 8

root@ads [/opt/jprofiler9]# jpenable Connecting to org.apache.catalina.startup.Bootstrap start [23360] ... Please select the profiling mode: GUI mode (attach with JProfiler GUI) [1, Enter] Offline mode (use config file to set profiling settings) [2] 1 Please enter a profiling port [59687] 8849

 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.adb(ejt:292) at com.jprofiler.ada(ejt:279) at com.jprofiler.ada(ejt:249) at com.jprofiler.cli.EnableApplication.a(ejt:132) at com.jprofiler.cli.EnableApplication.h(ejt:95) at com.jprofiler.cli.ba(ejt:26) at com.jprofiler.cli.EnableApplication.main(ejt:272) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:65) at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:57) 

在这种情况下,您不能使用jpenable ,但必须使用jpintegrate来修改已分析应用程序的启动脚本,并添加-agentpath参数以在启动时加载分析代理。

Are you using sudo to run jpenable ? Dont use sudo to start jpenable as well as the java process.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM