The admincache tool provides a description of a shared class cache contents.
$ admincache -cacheName nonrtCache -printStats J9 Java(TM) admincache 1.0 Licensed Materials - Property of IBM (c) Copyright IBM Corp. 1991, 2008 All Rights Reserved IBM is a registered trademark of IBM Corp. Java and all Java-based marks and logos are trademarks or registered trademarks of Sun Microsystems, Inc. Current statistics for cache "nonrtCache": base address = 0xD5445000 end address = 0xD6437000 allocation pointer = 0xD5529FA8 cache size = 16776852 free bytes = 14070360 ROMClass bytes = 1166004 AOT bytes = 1437412 Data bytes = 57440 Metadata bytes = 45636 Metadata % used = 1% # ROMClasses = 372 # AOT Methods = 981 # Classpaths = 1 # URLs = 0 # Tokens = 0 # Stale classes = 0 % Stale classes = 0% Cache is 16% full
For more details about the information provided by the -printStats option in the admincache tool, see printStats utility.
The -printAllStats option provides a more detailed description of the contents of a shared class cache. The information includes the list of classes and AOT methods store in the cache. Output from the -printAllStats option is verbose.
1: 0xD643B788 ROMCLASS: java/lang/ClassLoader at 0xD5469B88.This line indicates that the class java/lang/ClassLoader is contained in the cache. The addresses are internal to the shared class cache, and are rarely useful except for diagnostic purposes.
1: 0xD643B290 AOT: callerClassLoader for ROMClass java/lang/ClassLoader at 0xD5469B88.These lines indicate that the callerClassLoader method from the java/lang/ClassLoader class is contained in the class. The addresses listed are internal shared cache addresses. Output from the -printAllStats option does not show the signature for each AOT method in the cache, where the signature consists of the parameter types and return type.
For more details about the information provided by the -printAllStats option in the admincache tool, see printAllStats utility.