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