简体   繁体   English

在Java中监视和分析类加载器

[英]Monitoring and profiling class loaders in java

I am bit newbie to java profiling and i need to diagnose dynamically created class reloading issue at runtime as it seems class isn't being reloaded. 我对Java性能分析有点新手,我需要在运行时诊断动态创建的类重载问题,因为似乎类没有被重载。 How could i get to know when class get reloaded through some profiling tool? 我怎样才能知道何时通过某些分析工具重新加载类?

For problem i am trying to find solution is to my question below: 对于问题,我试图找到解决方案是下面的问题:

Jackson deserialisation/TypeReference for dynamically loaded pojo class 用于动态加载的Pojo类的Jackson反序列化/ TypeReference

JProfiler has a class loading probe that you can use for that purpose. JProfiler有一个可用于该目的的类加载探针。 In the events view of the class loader probe you can filter for the class name of interest and get the stack trace that causes the reload. 在类加载器探针的事件视图中,您可以过滤感兴趣的类名称,并获取导致重新加载的堆栈跟踪。 To see the stack trace, CPU recording has to be active. 要查看堆栈跟踪,CPU记录必须处于活动状态。

在此处输入图片说明

Disclaimer: My company develops JProfiler. 免责声明:我的公司开发JProfiler。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM