Question & Answer
Question
Tm1 web/tm1 applications it taking up a lot of memory and not releasing it. How do I optimize memory management on my AIX machine?
Cause
garbage collection is set to gencon
Answer
In order to optimize memory management of tm1 use balanced garbage collection instead of gencon.
Balanced garbage collection was introduced in IBM SDK Java Technology Edition Version 7
Refer to the following documentation.
http://www-01.ibm.com/support/docview.wss?uid=swg21516002
In order to enable balanced garbage collection:
Navigate to /bin64/startup_pmpsvc.sh file
This can be modified either of the following lines:
CATALINA_OPTS="$PROTOCOL $JAVA_64BIT_OPTS $JAVA_IBM_OPTS $DISP_OPTS
$UDECODER_OPTS $JMX_OPTIONS $KEYSTORE_OPTIONS -Xmx${MEM}m $MAX_NEW_SIZE
$NEW_SIZE $MAX_PERM_SIZE -Xgcpolicy:balanced"
or
JMX_OPTIONS="-Dcom.sun.management.jmxremote.port=7999
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=true
-Dcom.sun.management.jmxremote.password=false
-Djmx.remote.x.server.connection.timeout=1000 -Xgcpolicy:balanced"
Once this change has been made restart the application server.
Useful resources for IBM monitoring and diagnostic tools
http://www.ibm.com/developerworks/java/jdk/tools/gcmv/
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21882866