TravaOpenJDK新的JVM选项-XX:HotswapAgent,fatjar和core模式的区别?

TravaOpenJDK new JVM option -XX:HotswapAgent, difference between fatjar and core modes?

TravaOpenJDK introduced a new JVM option -XX:HotswapAgent in version 11.0.9.

启用HotswapAgent有三种模式,fatjarcoreexternal

fatjarcore有什么区别?

因为这个answer is hidden in a closed issue正如@papaya所说,留在这里作为参考

HotswapAgent core has no plugin except core JVM plugins. Then it is faster since less scanning tasks are necessary to be done, less class copying to target classloaders, there is no need to disable plugins. You choose only what you want.

已加载的插件在日志中可见,“HOTSWAP 代理:15:43:42.059 信息 (org.hotswap.agent.config.PluginRegistry) - 发现的插件:”

对于core:Hotswapper、WatchResources、AnonymousClassPatch、ClassInitPlugin、JdkPlugin

对于fatjar:dkPlugin、Hotswapper、WatchResources、ClassInitPlugin、AnonymousClassPatch、Hibernate、Hibernate3JPA、Hibernate3、Spring、Jersey1、Jersey2、Jetty、Tomcat、ZK、Logback、 Log4j2、MyFaces、Mojarra、Omnifaces、ELResolver、WildFlyELResolver、OsgiEquinox、Owb、代理、WebObjects、焊接、JBossModules、ResteasyRegistry、Deltaspike、GlassFish、Vaadin、Wicket、CxfJAXRS、FreeMarker、Undertow、MyBatis