I am sure you have experienced this problem here. I just came across this when trying to run a complicated web application in eclipse. If you google this error, most of the posts out there direct you to the eclipse.ini file. But increasing the perm max memory on eclipse did not help me. This issue was more a tomcat run time issue than eclipse issue, so modifying the launch arguments fixed the issue for me.
Let’s make it a full trouble shooting resolution by including the eclipse.ini file change here as well, because in some scenarios, this update helps.
1. eclipse.ini update
-startup plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326 -product org.eclipse.epp.package.jee.product --launcher.defaultAction openFile --launcher.XXMaxPermSize 4096M -showsplash org.eclipse.platform --launcher.XXMaxPermSize 4096m --launcher.defaultAction openFile --launcher.appendVmargs -vmargs -Dosgi.requiredJavaVersion=1.6 -Xms40m -Xmx4096m
2. update the launch arguments of tomcat server in eclipse by double clicking the server instance, and clicking opening launch configuration, and tabbing to “Arguments”, and append the following