Some projects refer to too many jar packages, or reflection generates too many classes, different or have too many constant pools, it is possible to report Java.lang.OutOfMemoryError:PermGen Space Error, we know that can be passed the JVM parameters -XX:MaxPermSize=256m
to configure the size of this portion of the heap memory.
How do I configure Tomcat's memory size in eclipse?
First you need to double-click Tomcat Server, as shown in:
A double-click will appear after the Tomcat configuration interface:
Then click on the, Red rectangle link, will pop up the Tomcat parameter configuration section face, to select the arguments parameter box:
If you set the value of-xx:maxpermsize=256m within the VM arguments text box, you can add other JVM parameters, such as maximum memory, minimum memory, and so on.
Transferred from: Http://outofmemory.cn/java/OutOfMemoryError/outofmemoryerror-permgen-space-in-tomcat-with-eclipse
How to start Tomcat error in Eclipse Java.lang.OutOfMemoryError:PermGen space solution