What should I set MaxMetaspaceSize to for my Java Agent?

book

Article ID: 14563

calendar_today

Updated On:

Products

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

Issue/Introduction

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:

-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? 

Environment

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

Resolution

 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.