gpt4 book ai didi

java - Jprofiler Agent安装报错Centos 7

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:24:06 27 4
gpt4 key购买 nike

我正在尝试使用 Java 8 和 Tomcat 8 安装 Centos 7 64 位的 Jprofiler 代理

root@ads [/opt/jprofiler9]# jpenable 连接到 org.apache.catalina.startup.Bootstrap 开始 [23360] ... 请选择分析模式: GUI模式(附带JProfiler GUI)[1, Enter] 离线模式(使用配置文件来设置分析设置)[2] 1个 请输入分析端口 [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.a.d.b(ejt:292)
at com.jprofiler.a.d.a(ejt:279)
at com.jprofiler.a.d.a(ejt:249)
at com.jprofiler.cli.EnableApplication.a(ejt:132)
at com.jprofiler.cli.EnableApplication.h(ejt:95)
at com.jprofiler.cli.b.a(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 在启动时加载分析代理的参数。

关于java - Jprofiler Agent安装报错Centos 7,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38168604/

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