【问题标题】:JProfiler Assertion failedJProfiler 断言失败
【发布时间】:2010-09-23 19:07:50
【问题描述】:

我尝试在远程模式下启动 JProfiler 6 并收到以下错误:

JProfiler> Protocol version 28
JProfiler> Using JVMTI
JProfiler> JVMTI version 1.1 detected.
JProfiler> 64-bit library
JProfiler> Listening on port: 8849.
JProfiler> Instrumenting native methods.
JProfiler> Can retransform classes.
JProfiler> Native library initialized
JProfiler> VM initialized
JProfiler> Waiting for a connection from the JProfiler GUI ...
JProfiler> Using dynamic instrumentation
JProfiler> Time measurement: elapsed time
JProfiler> CPU profiling enabled
Assertion failed: (agentClassLocal), function initReferences, file /Users/hannes/buildsys/jprofiler/build/src/c/agent/shared/LiveProfilingSession.cpp, line 95.

谁能解释一下它们的来源以及如何解决它们?

谢谢!

【问题讨论】:

  • 在具有 64 位 Sun Hotspot JVM 的 Linux x64 机器上安装 JProfiler 6.2.2 或 6.2.3 时遇到非常类似的错误:java: /home/hannes/buildsys/jprofiler/build/ src/c/agent/shared/LiveProfilingSession.cpp:102: void LiveProfiling::initReferences(JNIEnv*): 断言“controllerClassLocal”失败。 - 你有没有找到解决办法?

标签: jprofiler


【解决方案1】:

您缺少对 agent.jar 的引用:

-Xbootclasspath/p:/opt/jprofiler/bin/agent.jar

【讨论】:

    猜你喜欢
    • 2011-05-27
    • 2021-03-16
    • 2010-09-26
    • 2018-11-09
    • 2021-01-20
    • 2014-06-10
    • 2014-02-10
    • 2013-04-03
    相关资源
    最近更新 更多