What is Perm Gen space in Heap ?
What is Perm Gen space in Heap ?
PermGen space, short for Permanent Generation space, is a special memory region in the Java Virtual Machine (JVM) used to store metadata describing user classes (classes that are not part of the Java language itself). It is distinct from the main Java heap where the JVM stores instance data. PermGen space is used to store class structures such as the runtime constant pool, field and method data, and the code for methods and constructors, as well as interned strings and static class variables.
Prior to Java 8, PermGen was a fixed size and was part of the Java heap. It was notorious for causing java.lang.OutOfMemoryError: PermGen space errors if the space allocated to it was insufficient to hold all the class information required by an application. This was particularly a problem in environments where many classes are loaded and unloaded in the JVM, such as in web servers running multiple applications.
Đă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.