Unloading classes in java?

前端 未结 7 1723
遥遥无期
遥遥无期 2020-11-22 01:40

I have a custom class loader so that a desktop application can dynamically start loading classes from an AppServer I need to talk to. We did this since the amount of jars th

7条回答
  •  一整个雨季
    2020-11-22 02:13

    If you're live watching if unloading class worked in JConsole or something, try also adding java.lang.System.gc() at the end of your class unloading logic. It explicitly triggers Garbage Collector.

提交回复
热议问题