Tool to peek into CDS archive

calvin.cheung at oracle.com calvin.cheung at oracle.com
Wed Jul 27 19:24:46 UTC 2022


Hi Ashutosh,

You can list the contents of the classes.jsa by doing:

java -XX:+PrintSharedArchiveAndExit -XX:+PrintSharedDictionary

If you have your own CDS archive, you can specify it using the 
-XX:SharedArchiveFile option as follows:

java -XX:+PrintSharedArchiveAndExit -XX:+PrintSharedDictionary 
-XX:SharedArchiveFile=<CDS archive>

Calvin


On 7/27/22 10:48 AM, Ashutosh Mehra wrote:
> Hi,
> I am wondering if there is any way to peek into the CDS archive and 
> look into its contents. I believe a tool that dumps the list of 
> classes in the archive would be really helpful.
>
> Regards,
> Ashutosh Mehra


More information about the hotspot-dev mailing list