Skip to main content

Rotation of GC logging can be enabled using following parameter:-

 

  1. vi $SDC_DIST/libexec/sdc-env.sh/
  2. Add -Xloggc:/PATH/TO/gc.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=300M to export 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"

 

Be the first to reply!

Reply