How to track when class is loaded and destroyed in jvm?

后端 未结 8 1355
醉梦人生
醉梦人生 2020-12-24 02:25

How do I keep track when class is loaded and destroyed in jvm? Is there any callback method that is exposed by the jvm?

8条回答
  •  抹茶落季
    2020-12-24 03:19

    Do you want this information in your application or do you just want to analyse that from the outside? In the latter case you maybe can use VisualVM for that. Maybe your question is related to this one: Loaded classes in VisualVM.

提交回复
热议问题