What should I set MaxMetaspaceSize to for my Java Agent?

Document ID : KB000014563
Last Modified Date : 14/02/2018
Show Technical Document Details

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

From https://www.ca.com/us/services-support/ca-support/ca-support-online/knowledge-base-articles.TEC1303843.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:



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.