Tool to peek into CDS archive

Ioi Lam ioi.lam at oracle.com
Wed Jul 27 19:49:36 UTC 2022


Currently there's no such a tool. The very closest thing you can find is 
a map file, which can be generated when dumping the archive. E.g.,


java -Xshare:dump -Xlog:cds+map=debug:file=cds.map:none:filesize=0
java -Xshare:dump -Xlog:cds+map=trace:file=cds.map:none:filesize=0

Also, if you want to see the list of classes:

java -Xshare:dump -Xlog:cds+class=debug

Thanks
- Ioi


On 7/27/2022 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