Guide100.8K views1,931 votes0 replies2,638 following
Diagnosing and Fixing Metaspace/PermGen OutOfMemoryErrors from Classloader Leaks in Tomcat
When Tomcat repeatedly throws Metaspace/PermGen errors after redeploys, a classloader leak is usually the culprit. This guide walks through checking thread dumps, JVM histograms, and library placement to pinpoint and fix the leak, with practical commands and verification steps.