我们无法在Webshpere App服务器JVM上检测jprofiler。我们得到的错误如下
java.lang.UnsatisfiedLinkError: com/jprofiler/agent/Agent.registerAnnotationMethods([[Ljava/lang/String;[I[II)V
at com.jprofiler.agent.Agent.registerInterceptions(ejt:579)
at com.jprofiler.agent.Agent.registerAllAnnotationMethods(ejt:513)
at com.jprofiler.agent.Agent.<clinit>(ejt:149)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:194)当我启动JVM时,JVM能够与jprofiler客户端通信。在JVM启动之前,我看到了一些示例。几秒钟后,JVM崩溃,并处于停止状态。
环境详情应用服务器- WAS 6.1 java版本"1.5.0_55“Java(TM) 2运行时环境,标准版(内部版本1.5.0_55-b10) Java HotSpot(TM)服务器虚拟机(内部版本1.5.0_55-b10,混合模式)
我在日志里看到了这个
JProfiler> Protocol version 37
JProfiler> Using JVMTI
JProfiler> Thread status info workaround enabled.
JProfiler> 32-bit library
JProfiler> Listening on port: 8849.
JProfiler> Native library initialized
JProfiler> VM initialized
JProfiler> Waiting for a connection from the JProfiler GUI ...
java.lang.UnsatisfiedLinkError: com/jprofiler/agent/Agent.registerAnnotationMeth
ods([[Ljava/lang/String;[I[II)V
at com.jprofiler.agent.Agent.registerInterceptions(ejt:579)
at com.jprofiler.agent.Agent.registerAllAnnotationMethods(ejt:513)
at com.jprofiler.agent.Agent.<clinit>(ejt:149)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:194)
JProfiler> Using dynamic instrumentation
JProfiler> Time measurement: elapsed time
JProfiler> CPU profiling enabled并且JVM处于停止状态。如果我从“泛型JVM参数”中删除参数,我就能够在没有jprofiler的情况下启动JVM。
发布于 2014-02-17 04:31:06
当您的引导类路径或类路径中有来自不同JProfiler版本的agent.jar时,就会发生这种情况。请检查您的系统中是否有任何不同的JProfiler版本,以避免出现这种情况。
https://stackoverflow.com/questions/21786336
复制相似问题