VisualVM分析器错误:“类JavaLaunchHelper在..bin / java和..jre / lib中实现”

时间:2014-08-22 21:20:33

标签: java profiler visualvm

运行VisualVM探查器时,它会在正在运行的程序的控制台中显示此错误:

objc[1145]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
Profiler Agent: Waiting for connection on port 5140 (Protocol version: 15)
Profiler Agent: Established connection with the tool
Profiler Agent: Local accelerated session

这是什么意思,我该如何解决?分析器仍然会给出结果,但我想确保一切正常,因为很难使用常识来判断给出的结果是否正确。

1 个答案:

答案 0 :(得分:1)

这是JDK中的问题,而不是VisualVM中的问题。此问题没有负面影响,因为该类JavaLaunchHelper的两个副本都是相同的(从完全相同的源编译)。这纯粹是一个整容问题。