JVM Tutorials - Herong's Tutorial Examples
Dr. Herong Yang, Version 4.10

Regenerating Shared Archive

This section provides a tutorial example on how to generate a shared archive with 'java -Xshare:dump' command.

When JDK 1.5.0 is installed on Windows 2000, the shared archive is stored in a file named "classes.jsa" in the "jre/bin/client" sub-directory. The following commands show you how I regenerated the shared archive file on my system:

del /F \j2sdk1.5.0\jre\bin\client\classes.jsa
\j2sdk1.5.0\bin\java -Xshare:dump
Loading classes to share ... done.
Rewriting and unlinking classes ... done.
Calculating hash values for String objects .. done.
Calculating fingerprints ... done.
Removing unshareable information ... done.
Moving most read-only objects to shared space at 0x2aa80000 ... done.
Moving common symbols to shared space at 0x2adde848 ... done.
Moving remaining symbols to shared space at 0x2af01148 ... done.
Moving string char arrays to shared space at 0x2af01bd8 ... done.
Moving additional symbols to shared space at 0x2af82ef0 ... done.
Read-only space ends at 0x2afd7960, 5601632 bytes.
Moving read-write objects to shared space at 0x2b280000 ... done.
Moving String objects to shared space at 0x2b7d5be8 ... done.
Read-write space ends at 0x2b8143a8, 5850024 bytes.
Updating references to shared objects ... done.

Last update: 2004.

Table of Contents

 About This Book

 Download and Install Java SE 1.6 Update 2

 java.lang.Runtime Class - The JVM Instance

 java.lang.System Class - The Operating System

 ClassLoader Class - Class Loaders

 Class Class - Class Reflections

 Sun's JVM - Java HotSpot VM

 JRockit JVM 7.0 by BEA Systems

 JRockit JVM 8.0 by BEA Systems

 Memory Management Rules and Tests

 Garbage Collection Tests

 Stack Overflow Tests

 Thread Testing Program and Result

 StringBuffer Testing Program and Result

CDS (Class Data Sharing)

 What Is Class Data Sharing?

Regenerating Shared Archive

 Startup Time Saving with Restoring Shared Archive

 Startup Time Saving with Multiple JVM Processes

 Footprint Saving with Restoring Shared Archive

 Viewing Shared Memory of JVM Processes

 Micro Benchmark Runner and JVM Options

 Micro Benchmark Tests on "int" Operations

 Micro Benchmark Tests on "long" Operations

 Micro Benchmark Tests in JIT Compilation Mode

 Micro Benchmark Tests on "float" and "double" Operations

 References

 PDF Printing Version

Dr. Herong Yang, updated in 2010
Regenerating Shared Archive