Tool to peek into CDS archive
Ashutosh Mehra
asmehra at redhat.com
Wed Jul 27 20:53:20 UTC 2022
Thanks for the commands. These will definitely be useful when generating
the archive.
If I already have the archive, is there any way to check the contents?
Regards,
Ashutosh Mehra
On Wed, Jul 27, 2022 at 3:50 PM Ioi Lam <ioi.lam at oracle.com> wrote:
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/hotspot-dev/attachments/20220727/872b8dbe/attachment.htm>
More information about the hotspot-dev
mailing list