Memory and Heap Size Guideline for Cache Agents

Guidelines for memory and heap size depend on the cache provider.

With Legacy ActiveSpaces as The Cache Provider

The JVM can use much more memory than expected because it often defers garbage collection. If the JVM uses a large percentage of the available physical memory, the Legacy ActiveSpaces cluster might not perform well, due to swapping. The JVM and Legacy ActiveSpaces run in the same process; therefore they compete for the same addressable space in the RAM. If the JVM uses a large percentage of the addressable space, out of memory errors can occur in the Legacy ActiveSpaces cluster. This situation is more likely to occur on 32-bit systems, where the addressable space is 4GB or less. To avoid this situation, set a heap limit to restrict the amount of memory used by the JVM, so that it does not compete with Legacy ActiveSpaces. For example, you could use the command line option -Xmx512m.