Profile Image
vishnupriya

What is Java Dump Loaded Class List: -XX:DumpLoadedClassList?

What is Java Dump Loaded Class List: -XX:DumpLoadedClassList? Have you used this JVM argument before? What are the pros & cons of using this Java argument? Can you share your perspective/experience in using this JVM argument?

  • jvm-argument

  • xx-dumploadedclasslist

  • x-dumploadedclasslist

  • Java Dump Loaded Class List

Please Sign In or to post your comment or answer

Profile Image

Pavel Khodakovsky

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.

 

Got something else on mind? Post Your Question

Not the answer you're looking for? Browse other questions tagged
  • jvm-argument

  • xx-dumploadedclasslist

  • x-dumploadedclasslist

  • Java Dump Loaded Class List