eclipse and tomcat
Wed, Oct 25, 2006
First, you’ll need the sysdeo Tomcat plugin : get it from here
Stop Eclipse, download the sysdeo zip file and copy it to your Eclipse’s plugin directory. For me, that’s:
Edit your eclipse.ini file, which for me is in:
and make sure Eclipse has enough memory as you need to feed the plugin as much memory as it’ll take:
-Xms500M -Xmx1000M The above starts Eclipse with 500Mb minimum heap size, increasing to 1Gb.
Start Eclipse and go to:
Window -> Preferences -> Tomcat
and setup you Tomcat version (I used Version 5.x) and point the plugin at your tomcat installation directory, which for me is:
as I’m using it with Sakai
Next, click on the JVM Settings under the Tomcat option and add these JVM Parameters or you’ll get java.lang.OutOfMemory and java.lang.OutOfMemoryError: PermGen space errors:
-Xmx2000M -Xms1000M -XX:MaxPermSize=128m
These give Tomcat enough heap size to load all the webapps.
Now click on the Start Tomcat icon in the top left of the Eclipse window. The normal Tomcat logs won’t be created in your tomcat directory. Instead, everything will be captured in the Eclipse console window