What should I set MaxMetaspaceSize to for my Java Agent?
search cancel

What should I set MaxMetaspaceSize to for my Java Agent?


Article ID: 14563


Updated On:


CA Application Performance Management Agent (APM / Wily / Introscope) INTROSCOPE


See the Java 8 Properties Information for detailed information  http://docs.oracle.com/javase/8/docs/technotes/tools/windows/java.html

From https://ca-broadcom.wolkenservicedesk.com/external/article?articleId=35709 - 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:



This same KD discusses how to interpret the values of MaxMetaspaceSize whether or not G1GC garbage collection is enabled in the JVM arguments. )


  Is there a recommended setting for MaxMetaspaceSize and APM Java Agents? 


APM Agents 10.x and higher that support Java 8.


 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.