I am using tomcat6 and java on Debian server. Does anyone know of some good and reliable garbage collection strategies for PermGen?
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.
If you have evidence that you have a problem with too many loaded classes, and, especially, if you have a problem with lots of “one-off” classes that may be referenced once and never used again, you should learn about custom class loaders.
In order to garbage-collect a class, all of the objects of the class must be collectable, and there must be no references to the class other than from the loading class loader (which must also meet standard requirements for “collectability”). Then the class and it’s loading class loader will be collected together.