[b]What is permanent generation?[/b]
The permanent generation is special because it holds data needed by the virtual machine to describe objects that do not have an equivalence at the Java language level. For example objects describing classes and methods are stored in the permanent generation.
当遇到“java.lang.OutOfMemoryError: PermGen space”错误时,可通过-XX:MaxPermSize=256m参数来改变PermGen space
Java HotSpot VM Options的地址:
[url]http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp#PerformanceTuning[/url]
关于VM Options的FAQ地址:
[url]http://java.sun.com/docs/hotspot/gc1.4.2/faq.html[/url]
The permanent generation is special because it holds data needed by the virtual machine to describe objects that do not have an equivalence at the Java language level. For example objects describing classes and methods are stored in the permanent generation.
当遇到“java.lang.OutOfMemoryError: PermGen space”错误时,可通过-XX:MaxPermSize=256m参数来改变PermGen space
Java HotSpot VM Options的地址:
[url]http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp#PerformanceTuning[/url]
关于VM Options的FAQ地址:
[url]http://java.sun.com/docs/hotspot/gc1.4.2/faq.html[/url]