Eclipse tomcat java.lang.OutOfMemoryError PermGen space

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

-XX:PermSize=1024m -XX:MaxPermSize=1024m

eclipse-tomcat

Tagged with: , , ,
Posted in Eclipse, Tomcat

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>