Releasing unused memory from BW engine's heap.

Releasing unused memory from BW engine's heap.

book

Article ID: KB0089069

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Description:
BW expands and consumes the entire heap space while processing large messages. After processing, BW is not reducing the heap. Under some circumstances, there may be a need to have the JVM release memory and reduce the heap size dynamically during run time.

Issue/Introduction

Releasing unused memory from BW engine's heap.

Resolution

This is a known issue regarding Java. Once memory is committed to a Java application, it will not be released unless the application is restarted. The BW Engine internally uses the Java Runtime Environment, which causes this behavior.

Setting the following JVM parameters may help.

-XX:MinHeapFreeRatio
-XX:MaxHeapFreeRatio

Sample change in the TRA file.
java.extended.properties = -XX:MinHeapFreeRatio=52 -XX:MaxHeapFreeRatio=90 -XX:GCTimeRatio=19

Additional Information

Refer to the following link for more information about these parameters.
http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html