eclipseのWTPのtomcatでOutOfMemoryError: Java heap spaceが出た場合

1. Open the Server tab in Eclipse and double click the Tomcat server to open Server Configuration.

2. In Server Configuration, click on the Launch Configuration link under General Information.

3. Under Arguments tab, add following values in VM arguments.

  • Xms64m -Xmx256m
http://viralpatel.net/blogs/2009/10/setting-tomcat-heap-size-jvm-heap-eclipse.html

eclipseのサーバービューでtomcatサーバーをダブルクリック後、起動構成を開く
VM引数の最後にメモリ指定を足す
上記の64m、256mで無事に動いた