Page History
...
- Xshareclasses:<suboptions> Enables class sharing. Can take a number of suboptions, some of which are cache utilities. Cache utilities perform the required operation on the specified cache, without starting the VM. You can combine multiple suboptions, separated by commas, but the cache utilities are mutually exclusive.
#AllowOptions
-Xscmx16M
-Xshareclasses:name=myJSM
Listing shared classes
When listing caches, you must use the same JVM as the shared class cache was created for, except versions JDK 6 which can list all version caches.
...
Hint: Instead of setting the JAVA_HOME environment variable, use the absolute path to the JDK java shell script file.
QSH
/QOpenSys/QIBM/ProdData/JavaVM/jdk60/64bit/bin/java -Xshareclasses:listAllCaches
Listing all caches in cacheDir /tmp/javasharedresources/
Cache name level persistent last detach time
Compatible shared caches
myJSM Java6 64-bit yes In use
Incompatible shared caches
myJSM Java5 64-bit no Wed Jun 25 14:49:44 2019
myJSM Java5 32-bit no Wed Jun 25 14:46:06 2019
myJSM Java6 32-bit yes Wed Jun 18 12:18:59 2019
| Note |
|---|
There are four my JSM caches, one for each of the STRJSM JVM versions that had been started. |
...
When destroying caches, you must use the same JVM as the shared class cache was created for.
QSH
/QOpenSys/QIBM/ProdData/JavaVM/jdk50/64bit/bin/java -Xshareclasses:destroy,name=myJSM
JVMSHRC010I Shared Cache "myJSM" is destroyed
Unable to create Java Virtual Machine.