IBM User Guide for Java V7 on Windows > IBM SDK for Java



Class data sharing

The class sharing feature in the IBM Version 7 SDK offers the transparent and dynamic sharing of data between multiple Java™ Virtual Machines (JVMs). When enabled, JVMs use shared memory to obtain and store data, including information about: loaded classes, Ahead-Of-Time (AOT) compiled code, commonly used UTF-8 strings, and Java Archive (JAR) file indexes.

This form of class sharing is an advancement on earlier JVMs that have offered some form of class sharing between multiple JVMs; for example, the IBM Persistent Reusable JVM on z/OS, Oracle Corporation "CDS" feature in their Java 5.0 release, and the bytecode verification cache in the i5/OS™ Classic VM.

You can enable shared classes with the -Xshareclasses command-line option. For reference information about -Xshareclasses, see JVM command-line options.

For diagnosing problems with shared classes, see Shared classes diagnostic data.

When loading a class, the JVM internally stores the class in two key parts:

When enabled, shared classes shares the immutable parts of a class between JVMs, which has the following benefits:

Caching AOT methods reduces the affect of JIT compilation when the same classes are loaded by multiple JVMs. In addition, because a shared classes cache might persist beyond the life of a JVM, subsequent JVMs that run can benefit from AOT methods already stored in the cache.

Key points to note about the IBM class sharing feature are:


Parent: IBM SDK for Java








Error 404 - Not Found

Error 404 - Not Found

The document you are looking for may have been removed or re-named. Please contact the web site owner for further assistance.