Cache size limits
The maximum theoretical shared cache size is 2 GB. The size of cache you can specify is limited by the amount of physical memory and swap space available to the system. Because the virtual address space of a process is shared between the shared class cache and the Java™ heap, increasing the maximum size of the Java heap will reduce the size of the shared class cache you can create.