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

 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

 Sun's JVM - Java HotSpot VM

 JRockit JVM 28.2.7 by Oracle Corporation

 JVM Runtime Data Areas

 Memory Management and Garbage Collectors

 Garbage Collection Tests

 JVM Stack, Frame and Stack Overflow

 Thread Testing Program and Result

 CPU Impact of Multi-Thread Applications

 I/O Impact of Multi-Thread Applications

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

 Outdated Tutorials

 References

 PDF Printing Version