-Xmca / -Xmco
Sets the expansion step for the memory allocated to store the RAM (
-Xmca) and ROM (
-Xmco) portions of loaded classes.
Each time more memory is required to store classes in RAM or ROM, the allocated memory is increased by the amount set.
If the expansion step size you choose is too large,
OutOfMemoryError is reported. The exact value of a "too large" expansion step size varies according to the platform and the specific machine configuration.
You can use the
-verbose:sizes option to find out the value that is being used by the VM.
||Set expansion step for RAM||32 KB|
||Set expansion step for ROM||128 KB|
See Using -X command-line options for more information about the
This option cannot be used with the metronome GC policy (
-Xgcpolicy:metronome) because the heap is always fully expanded.