This warning message indicates that the Java HotSpot 64-Bit Server VM is running with the "Sharing" option enabled, but it only supports sharing for classes loaded by the boot loader. The bootstrap classpath, which contains core Java classes, has been modified or appended with additional classes.

In Java, class sharing allows multiple Java Virtual Machines (JVMs) to share the same read-only memory area for classes loaded from the bootstrap classpath. This can help reduce memory usage and improve performance.

However, the warning message suggests that sharing is only supported for classes loaded by the boot loader, not for any additional classes that have been added to the bootstrap classpath. These additional classes may not be compatible with class sharing and could lead to unexpected behavior or errors.

If you encounter this warning, it is recommended to review the changes made to the bootstrap classpath and ensure that only boot loader classes are included. Removing any additional classes from the bootstrap classpath should resolve the warning.

Java HotSpot VM Warning: Sharing Only Supported for Boot Loader Classes - Troubleshooting Guide

原文地址: https://www.cveoy.top/t/topic/hlSE 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录