Getting 'Out of Memory' error when using Integrator Studio

Date:11 July, 2007
Product/Release:LANSA Integrator V11.3
Abstract:Getting 'Out of Memory' error when using Integrator Studio
Submitted By:LANSA Technical Support

Description:

Getting 'Out of Memory' error when using Integrator Studio.

You can get out of memory errors when opening large files, downloading a large amount of data from JSM instance. ie large directory listing or a large number of trace files.

Solution:

If you get an OutOfMemory error you can increase the amount of memory assigned to the Studio JVM.

The current Studio shortcut property is:

javaw.exe -Djava.ext.dirs="C:\Program Files\Java\j2re1.4.2_14\lib\ext;.\lib\ext" -Djava.endorsed.dirs=.\lib\endorsed com.lansa.jsf.studio.JSFStudio

Current defaults are -Xms 2m and -Xmx64m

Change the Studio shortcut and assign more memory.

javaw.exe -Xms64m -Xmx128m -Djava.ext.dirs="C:\Program Files\Java\j2re1.4.2_14\lib\ext;.\lib\ext" -Djava.endorsed.dirs=.\lib\endorsed com.lansa.jsf.studio.JSFStudio

If you want to use Studio to publish and retrive files, but do not need to look at trace files.

Then add the following property to manager.properties:

studio.include.trace.directory=*none

*all all traces
*none no traces
*active only active traces
*client tracing level controled from Studio ( this is the default setting )

-Xms<size>
Specify the initial size, in bytes, of the memory allocation pool.
This value must be a multiple of 1024 greater than 1MB.
Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes.

The default value is 2MB. Examples:

-Xms6291456
-Xms6144k
-Xms6m

-Xmx<size>
Specify the maximum size, in bytes, of the memory allocation pool.
This value must be a multiple of 1024 greater than 2MB.
Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes.

The default value is 64MB. Examples:

-Xmx83886080
-Xmx81920k
-Xmx80m

For more information please visit:

http://java.sun.com/docs/hotspot/HotSpotFAQ.html

http://java.sun.com/products/hotspot/2.0/README.html