Products | Versions |
---|---|
TIBCO Data Virtualization | 7.0.7, 7.0.8 |
This article outlines the steps to change Java Garbage collection to use 'G1GC' scheme in TIBCO Data Virtualization.
Note:
TIBCO Data Virtualization 7.0.7 and 7.0.8, uses JRE8 which comes with a new garbage collection scheme named G1GC, which is better at managing large memory footprints.
Although TDV started using JRE8 in 7.0.7, it didn't start using the G1GC scheme until TDV 8.0 and higher.
Eg: set CIS_SERVER_VM_ARGS="-server -XX:NewRatio=6 -XX:-UseGCOverheadLimit -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=[TDV_Server_Installation_dir]/logs -XX:-ReduceInitialCardMarks -XX:+ExplicitGCInvokesConcurrent -XX:+UseConcMarkSweepGC -Xmx2048m"(b) Paste this value in the script_env.sh for CIS_SERVER_VM_ARGS and save the changes.
Old values: -XX:NewRatio=6 -XX:-UseGCOverheadLimit -XX:PermSize=64m -XX:MaxPermSize=1024m -XX:-ReduceInitialCardMarks -XX:+ExplicitGCInvokesConcurrent -XX:+UseConcMarkSweepGC New values: -XX:+UseG1GC -XX:MaxGCPauseMillis=2002. Save file with new changes.
set CIS_SERVER_VM_ARGS="-server -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=[TDV_Server_Install_dir]/logs -Xmx385024m -XX:+UseG1GC -XX:MaxGCPauseMillis=200"
ServerPropertiesManager : Detected [TDV_Server_Installation_dir]\conf\script_env.bat ServerPropertiesManager : Detected CIS_SERVER_VM_ARGS environment variable overrides VM_ARGS ServerPropertiesManager : Changing VM_ARGS to "-server -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=[TDV_Server_Installation_dir]/logs -Xmx2048m -XX:+UseG1GC -XX:MaxGCPauseMillis=200"