Tomcat configuration in Eclipse

Tomcat kept running out of memory when running it as a service from within Eclipse. Following is a solution:

Double-click on your Tomcat service under the Servers tab, and click on the "Open launch configuration" to open the Tomcat launch configuration window. On the Arguments tab, append the two following lines in the "VM arguments" form window:

-XX:MaxPermSize=128m
-Xmx1024m

How-to on running Tomcat within Eclipse:

Comments

More parameters

admin's picture
-XX:MaxPermSize=256m
-XX:PermSize=128m
-Xmn128m
-Xms356m
-Xmx640m
-XX:+UseParallelGC