How to increase the JavaHeap size when TIBCO API Exchange Gateway (APIX-G) crashes with a Java OutOfMemoryError Exception.

How to increase the JavaHeap size when TIBCO API Exchange Gateway (APIX-G) crashes with a Java OutOfMemoryError Exception.

book

Article ID: KB0093673

calendar_today

Updated On:

Products Versions
TIBCO API Exchange -
Not Applicable -

Description

Description:
This article describes a known issue when TIBCO API Exchange Gateway (APIX-G) crashes with a Java OutOfMemoryError Exception.
Symptoms:
J9AllocateIndexableObject() returning NULL! 24 bytes requested for object of class 0000000080029E00 from memory space 'Generational' id=0000000110409ED0

Concurrent kickoff, tracesizetarget=239014924 kickoffthreshold=32748954 remainingfree=25560 07:00:15:522875403 GMT j9mm.100 - J9AllocateObject() returning NULL! 16 bytes requested for object of class 0000000080032B00 from memory space 'Generational' id=0000000110409ED0 07:00:15:522560640 GMT j9mm.134 - Allocation failure end: newspace=27608/134217728 oldspace=3722768/805306368 loa=0/0 07:00:15:522558965 GMT j9mm.83 - Forcing J9AllocateObject() to fail due to excessive GC

Cause:
Java Heap OutOfMemoryError Exception.

Issue/Introduction

How to increase the JavaHeap size when TIBCO API Exchange Gateway (APIX-G) crashes with a Java OutOfMemoryError Exception.

Resolution

Update the heap size values in the asg-engine.tra file located in the ASG_HOME/bin folder.

Please look under this area:

# 32 bit JVM parameters for production. Change heap size and tune other
# parameters as needed.
# Note: Additional options for Sun JVMs. Consult the appropriate JVM
#       manual for high performance options.
#       Ex: -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:MaxGCPauseMillis=150
#           -XX:+CMSIncrementalMode -XX:+CMSIncrementalPacing -XX:+UseCMSCompactAtFullCollection -XX:CMSFullGCsBeforeCompaction=2
#           -XX:+DisableExplicitGC -XX:+UseTLAB -XX:+UseSpinning -XX:+UseFastAccessorMethods
#
#java.extended.properties=-server -Xms2048m -Xmx2048m -javaagent:%BE_HOME%/lib/cep-base.jar -XX:MaxPermSize=512m -XX:+UseParNewGC -XX:+UseConcMarkSweepGC

# 64 bit JVM parameters for production. Change heap size and tune other
# parameters as needed.
# Note: On some platforms the "-d64" switch might not work. Please
#       consult the JVM's documentation to ensure that the correct
#       switch is set to enable the 64bit JVM mode.
# Note: Additional options for Sun JVMs. Consult the appropriate JVM
#       manual for high performance options.
#       Ex: -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:MaxGCPauseMillis=150
#           -XX:+CMSIncrementalMode -XX:+CMSIncrementalPacing -XX:+UseCMSCompactAtFullCollection -XX:CMSFullGCsBeforeCompaction=2
#           -XX:+DisableExplicitGC -XX:+UseTLAB -XX:+UseSpinning -XX:+UseFastAccessorMethods
#
 java.extended.properties=-server -d64 -Xms2048m -Xmx2048m -javaagent:%BE_HOME%/lib/cep-base.jar -XX:MaxPermSize=512m -XX:+UseParNewGC -XX:+UseConcMarkSweepGC

After applying the update to the asg-engine.tra file, restart asg-engine .