DEV Community

Discussion on: JVM. Memory management

Collapse
 
soylomass profile image
soylomass • Edited

Hi! Congrats for your article, it's the only one I found that explains Java memory usage this clearly and detailedly.

Is there any way for multiple JVMs using the same AppCDS .jsa to only load it to RAM once? I need to run multiple equal .jars and I notice they all load the .jsa to memory (using NMT i see that the memory that was previously used by "Class" is now used by "Shared class space"), making faster start-up the only benefit of class sharing.

Is there a way to them share classes without having each of them load them to RAM separately?

Thanks in advance.

PS: I use OpenJDK 16