PrepZone Logo
PrepZone
Back to Java

Java · Medium

What is Metaspace (Java 8+) vs PermGen (Java 7-)?

JavaMemory & JVMJVM

Answer preview

PermGen (Permanent Generation) — Fixed-size area within the JVM heap. Stored class metadata, interned strings, and static variables. Prone to OutOfMemoryError: PermGen space with heavy dynamic class loading.…