## Notas
Before Java 8, [[(java) What is Permanent Generation]] heap memory was originally allocated in the JVM when it starts. However, it could not be resized after a program started. Additionally it is the cause for a lot of [[OutOfMemoryError]]s.
[[Java Metaspace]] replaced [[Java Permanent Generation]] starting in Java 8. It is allocated in OS memory, which can dynamically scale. It also has better garbage collection.