Profile Image

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

Please Sign In or to post your comment or answer

Profile Image

Pavel Khodakovsky


• -XX:DumpLoadedClassList=<filename>



java -Xshare:off -XX:DumpLoadedClassList=myapp.classlist \
-jar myapp.jar
Runs the application in myapp.jar while generating a class list to



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


Default Value:

The default value of -XX:DumpLoadedClassList is undefined, i.e. no class list
is generated.




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.



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