Does Garbage collection occur in permanent generation space in JVM?
Does Garbage collection occur in permanent generation space in JVM?
Yes, garbage collection does occur in the permanent generation space in the JVM. The permanent generation, or PermGen, is a special heap space that is separate from the main memory heap and is used to store metadata required by the JVM to describe the classes and methods used in the application. It is populated at runtime with these application classes, as well as Java SE library classes and interned strings.
Garbage collection in the PermGen space is responsible for removing classes that are no longer in use, which can happen during a full garbage collection cycle. This is important because it helps to prevent memory leaks and ensures that memory is available for new classes that the application may load in the future.
Đăng nhập để tham gia thảo luận cùng mọi người.
Chưa có bình luận nào
Hãy là người đầu tiên chia sẻ suy nghĩ của bạn.