-Xmcrs
Sets an initial size for an area in memory that is reserved within the lowest 4 GB memory area for any native classes, monitors, and threads that are used by compressed references.
You can use the -verbose:sizes option to find out the value that is being used by the VM.
Notes:
- Native memory
OutOfMemoryErrorexceptions might occur when using compressed references if the lowest 4 GB of address space becomes full, particularly when loading classes, starting threads, or using monitors. - If you are not using compressed references and this option is set, the option is ignored and the output of
-verbose:sizesshows-Xmcrs0. - This option is overridden by the
-Xgc:suballocatorInitialSizeoption, irrespective of the order of the options on the command line. If the-Xmcrsoption is thus overridden, the-Xmcrsoutput of-verbose:sizesshows thesuballocatorInitialSizevalue.
Syntax
-Xmcrs<size>
For more information about the <size> parameter, see Using -X command-line options.