First figure out how to report this memory overflow problem, this issue occurs first to exclude the program is caused by error code. If you have been working properly before, and have reported this error suddenly due to some features or modifications, then we should be wondering if this is a problem for our environment?
Determine how the reported memory overflow problem is being manipulated:
1. If you start the Tomcat (run Startup.bat) error individually, you can modify the Catalina.bat file (assuming it is in Windows):
After the "REM-----Execute The requested Command---------------------------------------" line, "Echo Using catalina_base:"% Catalina_base% "" Before this line, add:
Set java_opts=%java_opts%-server-xx:permsize=512m-xx:maxpermsize=512m
Start Tomcat,ok again;
2. In MyEclipse, you need to modify the parameter settings of the JVM in the interface shown:
Set in Optional Java VM arguments:
-xms512m-xmx512m-xx:permsize=512m-xx:maxpermsize=512m
Okay, you can start Tomcat.
MyEclipse using Tomcat to report the OutOfMemoryError solution