当前位置:  开发笔记 > 编程语言 > 正文

Java Visual VM:分析错误

如何解决《JavaVisualVM:分析错误》经验,为你挑选了0个好方法。

我试图描述一个简单的算法:"插入排序".代码获取要排序的元素数,然后随机创建那些排序开始之后的元素.

我正在使用Visual VM进行性能分析.但是,当我开始分析时,我在控制台上看到以下警告消息:

objc[62944]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/bin/java (0x10004f4c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x1078054e0). 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
Profiler Agent Warning: JVMTI classLoadHook: class name is null.
Profiler Agent Warning: JVMTI classLoadHook: class name is null.
Profiler engine warning: class 

sun.reflect.GeneratedSerializationConstructorAccessor29 that should be instrumented is not loaded by target VM
*** Requested classloader: sun.reflect.DelegatingClassLoader@21497e21, its class = class sun.reflect.DelegatingClassLoader, index = 39, hashcode = 558464545
*** Profiler engine warning: target VM cannot load class to instrument sun.reflect.GeneratedSerializationConstructorAccessor29
*** probably it has been unloaded recently
*** Profiler engine warning: class sun.reflect.GeneratedSerializationConstructorAccessor28 that should be instrumented is not loaded by target VM
*** Requested classloader: sun.reflect.DelegatingClassLoader@3b0cf023, its class = class sun.reflect.DelegatingClassLoader, index = 40, hashcode = 990703651
*** Profiler engine warning: target VM cannot load class to instrument sun.reflect.GeneratedSerializationConstructorAccessor28
*** probably it has been unloaded recently
*** Profiler engine warning: class sun.reflect.GeneratedSerializationConstructorAccessor27 that should be instrumented is not loaded by target VM
*** Requested classloader: sun.reflect.DelegatingClassLoader@23a0a147, its class = class sun.reflect.DelegatingClassLoader, index = 41, hashcode = 597729607
*** Profiler engine warning: target VM cannot load class to instrument sun.reflect.GeneratedSerializationConstructorAccessor27
*** probably it has been unloaded recently
*** Profiler engine warning: class sun.reflect.GeneratedSerializationConstructorAccessor26 that should be instrumented is not loaded by target VM
*** Requested classloader: sun.reflect.DelegatingClassLoader@61aaeaa4, its class = class sun.reflect.DelegatingClassLoader, index = 42, hashcode = 1638591140
*** Profiler engine warning: target VM cannot load class to instrument sun.reflect.GeneratedSerializationConstructorAccessor26
*** probably it has been unloaded recently

我不确定配置文件数据是否正确.

推荐阅读
女女的家_747
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有