Usage:
• -XX:DumpLoadedClassList=<filename>
Example:
java -Xshare:off -XX:DumpLoadedClassList=myapp.classlist \
-jar myapp.jar
Runs the application in myapp.jar while generating a class list to
myapp.classlist.
Description:
The -XX:DumpLoadedClassList option is used to prepare a class list for use
with Application Class Data Sharing. It produces an output file that lists the
classes that were loaded during the execution of an application. Note that this
option must be used together with -Xshare:off. The output class list can then
be passed to -XX:SharedClassListFile to generate a shared class data archive
for the application’s classes, which can substantially improve subsequent startup
times of the application.
See the description of the -Xshare option for details on Class Data Sharing.
Note that the class list will contain classes loaded during the execution of the
application, so for best results the application should be exercised in a realistic
scenario
Default Value:
The default value of -XX:DumpLoadedClassList is undefined, i.e. no class list
is generated.
Errors:
None
Arguments Related to -Xshare:
TODO: link to -Xshare TODO: link to -XX:SharedClassListFile TODO: link to
-XX:SharedArchiveFile TODO: link to -XX:ArchiveClassesAtExit
Related Posts:
• Java Application Class Data Sharing.
NOTE:
If you have additional comments, interesting experiences or even point of disagreement with this JVM argument description, please leave a comment. Your
insights will help the entire 10+ million java developer community to develop
one standard source of documentation for all the JVM arguments.
Edit your Comment