Two methods
One:
To manually set the MaxPermSize size:
Windows:
Modify the Tomcat_home/bin/catalina.bat (under Linux for catalina.sh) and add the following line on the "echo" Using catalina_base: $CATALINA _base "":
Set java_opts=%java_opts%-server-xx:permsize=128m-xx:maxpermsize=512m
Linux:
Under catalina.sh:
java_opts= "$JAVA _opts-server-xx:permsize=128m-xx:maxpermsize=512m"
Two:
Modifying the Tomcat parameters in MyEclipse can also:
Window--preferences--myeclipse--server--tomcat--... (, do not wrap, in order to show convenient for me to change the line)
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/5A/18/wKioL1T2lVqBojs1AAObCAYUAzE352.jpg "title=" 1344425352_7360.png "alt=" Wkiol1t2lvqbojs1aaobcayuaze352.jpg "/>
。
This article is from the Java Development blog, so be sure to keep this source http://dslzc.blog.51cto.com/9816334/1617195
Java.lang.OutOfMemoryError:PermGen space and how to solve it