简体   繁体   中英

I am looking for garbage collection strategy for permgen?

I am using tomcat6 and java on Debian server. Does anyone know of some good and reliable garbage collection strategies for PermGen?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM