InterviewSolution
Saved Bookmarks
| 1. |
What is MetaSpace? How does it differ from PermGen? |
|
Answer» JVM PremGen: MetaData information of classes was STORED in PremGen (Permanent-Generation) memory TYPE before Java 8. PremGen is fixed in SIZE and cannot be dynamically resized. It was a contiguous Java Heap Memory. MetaSpace: Java 8 stores the MetaData of classes in NATIVE memory CALLED 'MetaSpace'. It is not a contiguous Heap Memory and hence can be grown dynamically which helps to overcome the size constraints. This improves the garbage collection, auto-tuning, and de-allocation of metadata. |
|