What is the significance of PermGen space in java?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
PermGen space is reserved for long-term objects – mostly
Classobjects loaded by theClassLoader. PermGen will not be garbage collected except under very special circumstances (specifically, when theClassLoaderthat loaded those classes goes out of scope).This is a garbage collection optimization – if objects that we don’t expect to be garbage collected are stored separately, it compacts the space where the rest of the objects are stored, which leads to less work for the garbage collector.