Java Netbeans内存探查器引发探查器引擎警告
我正在尝试使用Netbeans探查器,虽然我可以运行探查器监视器,但当我运行探查器内存时,它会在GlasshFish4窗口下的控制台中显示以下错误Java Netbeans内存探查器引发探查器引擎警告,java,netbeans,jvm,profiler,glassfish-4,Java,Netbeans,Jvm,Profiler,Glassfish 4,我正在尝试使用Netbeans探查器,虽然我可以运行探查器监视器,但当我运行探查器内存时,它会在GlasshFish4窗口下的控制台中显示以下错误 *** Profiler engine warning: class sun.reflect.GeneratedConstructorAccessor107 that should be instrumented is not loaded by target VM SEVERE: *** Requested classloader: sun.r
*** Profiler engine warning: class sun.reflect.GeneratedConstructorAccessor107 that should be instrumented is not loaded by target VM
SEVERE: *** Requested classloader: sun.reflect.DelegatingClassLoader@554f6057
SEVERE: , its class = class sun.reflect.DelegatingClassLoader, index = 354, hashcode = 1431265367
SEVERE: *** Profiler engine warning: target VM cannot load class to instrument sun.reflect.GeneratedConstructorAccessor107
SEVERE: *** probably it has been unloaded recently
SEVERE: *** Profiler engine warning: class sun.reflect.GeneratedConstructorAccessor108 that should be instrumented is not loaded by target VM
SEVERE: *** Requested classloader: sun.reflect.DelegatingClassLoader@25bb0b75
SEVERE: , its class = class sun.reflect.DelegatingClassLoader, index = 355, hashcode = 633015157
SEVERE: *** Profiler engine warning: target VM cannot load class to instrument sun.reflect.GeneratedConstructorAccessor108
SEVERE: *** probably it has been unloaded recently
SEVERE: *** Profiler engine warning: class sun.reflect.GeneratedConstructorAccessor109 that should be instrumented is not loaded by target VM
SEVERE: *** Requested classloader: sun.reflect.DelegatingClassLoader@44540a55
SEVERE: , its class = class sun.reflect.DelegatingClassLoader, index = 356, hashcode = 1146358357
SEVERE: *** Profiler engine warning: target VM cannot load class to instrument sun.reflect.GeneratedConstructorAccessor109
SEVERE: *** probably it has been unloaded recently
这些本身并不是错误。这些是关于探查器引擎无法转换app server容器生成的各种合成类的警告。分析器一直工作得很好
此外,切换到VisualVm不会改变任何事情,因为使用的是同一个引擎。@VickyThakor这是我的另一个问题!答案不是关于这个错误。我的意思是使用
VisualVM
而不是netbeans的profiler虚拟机的问题是它不显示项目名称,但glassfish只VisualVM
支持特定类的profiler。