JVM Tutorials - Herong's Tutorial Examples - Version 4.23, by Dr. Herong Yang
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
Downloading and Installing JDK 1.8.0 on Windows
Downloading and Installing JDK 1.7.0 on Windows
java.lang.Runtime Class - The JVM Instance
java.lang.System Class - The Operating System
ClassLoader Class - Class Loaders
Class Class - Class Reflections
JRockit JVM 28.2.7 by Oracle Corporation
Memory Management and Garbage Collectors
JVM Stack, Frame and Stack Overflow
Thread Testing Program and Result
CPU Impact of Multi-Thread Applications
I/O Impact of Multi-Thread Applications
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