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] Thu, 20 October 2011 03:28 Go to next message
Srinivasan Iyer is currently offline Srinivasan Iyer
Messages: 36
Registered: October 2011
Member
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 10: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 04:12 Go to previous message
Robert Emsbach is currently offline Robert Emsbach
Messages: 118
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: Thu Sep 18 21:55:58 GMT 2014

Powered by FUDForum. Page generated in 0.01890 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software