Verbose output

The verbose suboption of -Xshareclasses gives the most concise and simple diagnostic output on cache usage.

Verbose output will typically look like this:
 >java -Xshareclasses:name=myCache,verbose -Xscmx10k HelloWorld 
[-Xshareclasses verbose output enabled] 
JVMSHRC158I Successfully created shared class cache "myCache" 
JVMSHRC166I Attached to cache "myCache", size=10200 bytes 
JVMSHRC096I WARNING: Shared Cache "myCache" is full. Use -Xscmx to set cache size. 
Hello 
JVMSHRC168I Total shared class bytes read=0. Total bytes stored=9284
This output shows that a new cache called myCache was created, which was only 10 kilobytes in size and the cache filled up almost immediately. The message displayed on shut down shows how many bytes were read or stored in the cache.


© Copyright IBM Corporation 2005, 2010. All Rights Reserved.
© Copyright Sun Microsystems, Inc. 1997, 2007, 901 San Antonio Rd., Palo Alto, CA 94303 USA. All rights reserved.
US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
This information center is powered by Eclipse technology. (http://www.eclipse.org/)