Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » 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 IyerFriend
Messages: 36
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 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 EmsbachFriend
Messages: 186
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: Mon May 21 21:04:01 GMT 2018

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

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

Back to the top