First, modify the Catalina.bat under the Tomcat/bin directory
Join under "REM-----Execute The requested Command----------------------"
java_opts= "-server-xms800m-xmx800m-xxnewsize=256m-xx:permsize=256m-xx:maxnewsize=512m-xx:maxpermsize=512m" .
This approach works when you use Tomcat only, but it doesn't work when you use Eclipse.
Ii. modification of Eclipse.ini
Join behind the Javaw.exe
-vm
D:/jdk6/bin/javaw.exe
-vmargs
-dosgi.requiredjavaversion=1.5
-xms512m
-xmx1024m
-xx:permsize=256m
-xx:maxpermsize=512m
This method sometimes works, but this time it does not work, the specific reasons I do not know, I guess it may be written above this paragraph with the launch of the Tomcat server in eclipse does not matter, so can not solve the problem of Tomcat error.
Third, modify Eclipse's Run configurations
Click "Run"-"Run Configurations" and click on the "Arguments" tab in the window that opens.
In VM arguments, enter the bottom of the content:
-xms256m-xmx512m-xx:maxnewsize=256m-xx:maxpermsize=256m
The third method generally solves the problem of running the server container to report the persistent memory under Eclipse, that is, the problem that this article title presents.
Reference----http://jingyan.baidu.com/article/20b68a884d7f72796cec62e3.html
Eclipse Newspaper caused By:java.lang.OutOfMemoryError:PermGen space solutions