Very strange that Pega didn't recommend anything about MaxMetaSpaceSize introduced in Java8, does anyone have an idea. I raised an SR to understand if its missing in the documentation but I was asked to raise a question here instead. I could only see a one liner highlighted in the red below mentioning that PermSize isn't required in Java8 but what about the MaxMetaSpaceSize? Any suggestions would be greatly appreciated.
As PermSize is no longer considered on Java 8, you can use MaxMetaspaceSize Java argument to limit the amount of memory space. By default, Metaspace space is unbounded and you have to set arguments to limit the size to avoid native memory being exhausted by PRPC.
PermGen space situation
This memory space is completely removed.
The PermSize and MaxPermSize JVM arguments are ignored and a warning is issued if present at start-up.
Metaspace memory allocation model
Most allocations for the class metadata are now allocated out of native memory.
The klasses that were used to describe class metadata have been removed.
By default class metadata allocation is limited by the amount of available native memory (capacity will of course depend if you use a 32-bit JVM vs. 64-bit along with OS virtual memory availability).
A new flag is available (MaxMetaspaceSize), allowing you to limit the amount of native memory used for class metadata. If you don’t specify this flag, the Metaspace will dynamically re-size depending of the application demand at runtime.