Rotation of GC logging can be enabled using following parameter:-
- vi $SDC_DIST/libexec/sdc-env.sh/
- Add
-Xloggc:/PATH/TO/gc.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=300M
toexport SDC_JAVA_OPTS
line
Following is the test configuration :-
export SDC_JAVA_OPTS="-Xmx1024m -Xms1024m -server -XX:-OmitStackTraceInFastThrow ${SDC_JAVA_OPTS} -Dlog4j2.formatMsgNoLookups=true -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:/Users/ajinkya/utilities/streamsets-datacollector-4.2.1/gc.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=300M"