Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Process Manager (Stardust) » Tomcat runs of out memory in a RAD scenario(Tomcat Stardust JVM configuration for memory settings)
Tomcat runs of out memory in a RAD scenario [message #741950] Wed, 19 October 2011 23:28 Go to next message
Srinivasan Iyer is currently offline Srinivasan Iyer
Messages: 35
Registered: October 2011
The default Tomcat settings in a RAD scenario do not allocate much memory. Hence the application may run often out of memory quite frequently. The console log will often throw a java.lang.OutOfMemoryError exception. To avoid this, just add a different momory setting in the Tomcat launch configuration:

Servers > Open Launch Configuration > Arguments > VM arguments > at the very bottom add > -Xms128m -Xmx512m -XX:MaxPermSize=128m

[Updated on: Thu, 20 October 2011 06:32]

Report message to a moderator

Re: Tomcat runs of out memory in a RAD scenario [message #741982 is a reply to message #741950] Thu, 20 October 2011 00:12 Go to previous message
Robert Emsbach is currently offline Robert Emsbach
Messages: 115
Registered: October 2011
Location: Singapore
Senior Member

On a standalone server (outside eclipse RAD environment) start tomcat using:

set JAVA_OPTS=-Xms128m -Xmx512m -XX:MaxPermSize=128m
catalina.bat run

Added to FAQ.
Previous Topic:Using Structure Data Type (SDT) in Java Applications
Next Topic:Model cannot be deployed after dropping and re-creating a partition
Goto Forum:

Current Time: Sat Jul 26 07:20:23 EDT 2014

Powered by FUDForum. Page generated in 0.01874 seconds