JAVA memory overflow solution (java.lang.OutOfMemoryError: PermGen space)

1. In the  Apache Tomcat-7.0.70-\ bin \ the catalina.bat  (in the Linux system is the catalina.sh) the file echo Using CATALINA_BASE: "% CATALINA_BASE% " The above insert the following code

1 set JAVA_OPTS=%JAVA_OPTS% -server -XX:PermSize=256M -XX:MaxPermSize=512m

2. eclispe the window -> Preferences -> java - > Installed JRES -> Edit -> Defalut VM arguments add the next: -Xms64m -Xmx256m

 

3. Under the eclispe run -> Debug Configurations -> Apache Tomcat -> Arguments added: -XX: 128M PermSize = -XX: MaxPermSize = 256M

 

4. In the eclispe Run -> Configurations Debug shown in FIG added: Xms256m -Xmx512m -XX: 256M MaxNewSize = -XX: MaxPermSize = 256M

 

Guess you like

Origin www.cnblogs.com/xfbb/p/11768820.html