Today changed a tomcat6.0.51 time, two items simultaneously debug start, reported this error: Java.lang.OutOfMemoryError:PermGen space
Find the answer on the Internet The main solution is this:
Manually setting the MaxPermSize size
Modify Tomcat_home/bin/catalina.bat (under Linux for catalina.sh),
Add the following line to the "echo" Using catalina_base: $CATALINA _base "":
set java_opts=%java_opts%-server-xx:permsize=128m-xx:maxpermsize=512m
(Add the above line, personally try to do it)
Under catalina.sh:
java_opts= "$JAVA _opts-server-xx:permsize=128m-xx:maxpermsize=512m"
Reference article: http://blog.csdn.net/fengyie007/article/details/1780375
Added no resolution, finally see someone's comments solved the problem, thank you very much ~
When you set up tomcat, you should double-click the configuration of the server, plus the following configuration.
-xms256m-xmx512m-xx:permsize=256m-xx:maxpermsize=512m
Click Open Launch Configuration
Java.lang.OutOfMemoryError:PermGen space and how to solve it