Class determination

The best practice for using CDS is to only archive the classes that are used. This will help keep the archive from bloating unnecessarily. We can use the following command line and flags to determine which classes are loaded:

java -Xshare:off -XX:+UseAppCDS -XX:DumpLoadedClassList=ch2.lst - cp cp2.jar Chapter2
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset