See the Java 8 Properties Information for detailed information http://docs.oracle.com/javase/8/docs/technotes/tools/windows/java.html
GCMonitor Maximum Capacity metric shows a value of Unlimited.
In Java 8, you can use an extra Java property to specify a limit to the metaspace size, in which case a numerical value for Maximum Capacity will be reported by APM.
To set a metaspace size of 512MB, you would use this JVM parameter:
-XX:MaxMetaspaceSize=512m
This same KD discusses how to interpret the values of MaxMetaspaceSize whether or not G1GC garbage collection is enabled in the JVM arguments. )
(-XX:+UseG1GC).)
Is there a recommended setting for MaxMetaspaceSize and APM Java Agents?
MaxMetaspaceSize is by default unlimited, so there is no need to change in most cases to another value. At this time, there are no other recommendations.