From what I know, starting with JDK 8 the PermGen will be a page in java's history. Everything nice and merry... but what will the new Memory Layout look like? Will this affect GC on the new platform?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
This is when permGen is there
After Metaspace is introduced
Definitely, there is lot of improvement in GC in Java 8. You can check this stackoverflow post
In Metaspace, multiple mapped virtual memory spaces are allocated for metadata and allocation ( in chunks) is per class loader depending on the type of classloader and its liveness . Chunks are returned to free chunks list and also virtual memory spaces returned when emptied.
Advantage of GC would be
More detail is here
PermGen is replaced with Metaspace in Oracle/Sun JDK8, which is very similar. The main difference is that Metaspace can expand at runtime.