"Metadata GC Threshold" garbage collections when Metaspace occupancy less than Metaspace allocation
Issue
-
A
Metadata GC Thresholdtriggering a collection despite the gc logging showing plenty of available Metaspace. For example, in the following gc log entry the Metaspace occupancy is 256590K, and the Metaspace capacity is 1230848K:[Full GC (Metadata GC Threshold) 308976.826: [CMS: 50324K->50420K(1756416K), 0.2793245 secs] 296498K->50420K(2063104K), [Metaspace: 256590K->256590K(1230848K)], 0.2799017 secs]
Environment
- OpenJDK 1.8 u40+
- Oracle JDK 1.8 u40+
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
