|
Duplicate :
|
JDK-8259070 adds a functionality to jcmd for dumping CDS archive on a running java process.
To reproduce the issue:
1. Start a java app.
2. While the app is still running, use jcmd to create a dynamic CDS archive:
e.g. jcmd <pid> VM.cmd dynamic_dump
3. Run the app again with the dynamic CDS archive and the -XX:+RecordDynamicDumpInfo option:
e.g. java -XX:+RecordDynamicDumpInfo -XX:SharedArchiveFile=java_pid<pid>_dynamic.jsa -cp myApp.jar myApp
|