Java HotSpot 64-Bit Server VM Warning: Sharing Limitation with Appended Bootstrap Classpath
This warning message indicates that in the Java HotSpot 64-Bit Server VM, sharing is only supported for classes loaded by the boot loader. The bootstrap classpath has been modified by appending additional classes, which may cause issues with sharing.
Sharing in the Java VM refers to the mechanism of reusing common data structures and code among multiple Java Virtual Machines running on the same host. This can improve performance and reduce memory usage.
However, in this case, sharing is limited to classes loaded by the boot loader only. The bootstrap classpath is a set of directories and JAR files that contain core Java classes required for the JVM to start and run.
Appending additional classes to the bootstrap classpath can interfere with the sharing mechanism because those classes may have dependencies or conflicting versions with the core Java classes. This warning is raised to inform you about this limitation.
To resolve this warning, you should avoid modifying the bootstrap classpath or appending additional classes to it. Instead, consider using the regular classpath (specified using the -classpath or -cp option) for your application-specific classes and dependencies.
原文地址: https://www.cveoy.top/t/topic/hlRb 著作权归作者所有。请勿转载和采集!