我试图使用JProfiler的离线分析API将Jprofiler8.1.4与jenkins集成起来。下面是写入的程序
Jprofiler工具手动工作很好,可以开始记录、保存快照和停止记录。但是,当我执行该程序时,我会得到以下错误消息UnsatisfiedLinkError:
com.jprofiler.agent.InterceptionCallee.registerI nterceptions0(Z[Lcom/jprofiler/agent/util/h;Ljava/lang/reflect/Field;Ljava/lang/ reflect/Field;Ljava/lang/reflect/Field;Ljava/lang/reflect/Field;Ljava/lang/refle ct/Field;Ljava/lang/reflect/Field;Ljava/lang/reflect/Field;Ljava/lang/reflect/Fi eld;Ljava/lang/reflect/Field;Ljava/lang/Class;Ljava/lang/reflect/Method;java.lang.UnsatisfiedLinkErrorLjava/la ng/reflect/Method;)V在com.jprofiler.agent.InterceptionCallee.registerInterceptions0(Native方法)在com.jprofiler.agent.InterceptionCallee.registerInterceptions(ejt:152) )
at com.jprofiler.agent.probe.y.a(ejt:181)
at com.jprofiler.agent.probe.y.a(ejt:37)
at com.jprofiler.agent.Agent.initStatic(ejt:320)
at com.jprofiler.agent.Agent.<clinit>(ejt:98)
at com.jprofiler.agent.ControllerImpl.startCPURecording(ejt:53)
at com.jprofiler.api.agent.Controller.startCPURecording(ejt:108)
at TestJenJPIntegration.recordCPUdata(TestJenJPIntegration.java:24)
at TestJenJPIntegration.main(TestJenJPIntegration.java:45)
JProfiler> Native library not found. Ignoring controller call./Users打印报表/
CPU recording started..
Exception in thread "_jprofiler_offline_comm" java.lang.UnsatisfiedLinkError: co
m.jprofiler.agent.ControllerImpl.saveSnapshot0([BLjava/lang/Object;)V
at com.jprofiler.agent.ControllerImpl.saveSnapshot0(Native Method)
at com.jprofiler.agent.ControllerImpl.access$100(ejt:18)
at com.jprofiler.agent.h.run(ejt:186)/Users打印声明/ Saved snapshot
JProfiler> Native library not found. Ignoring controller call./Users打印声明/ CPU recording stopped..
发布于 2015-05-28 13:55:07
com.jprofiler.api.platform不是用于脱机分析,而是用于编写直接分析分析数据的程序。您应该只使用Controller类,并按照集成向导的要求,使用脱机开关传递-agentpath VM参数
会话->集成向导->新的远程集成
https://stackoverflow.com/questions/30507200
复制相似问题