if (enableExtendedGcArgs) {
jvmArgs '-XX:+UseG1GC',
'-XX:MetaspaceSize=256M',
'-XX:MaxGCPauseMillis=200',
// 1. CRITICAL: Tells the JVM to actually take the dump on an OutOfMemory error
'-XX:+HeapDumpOnOutOfMemoryError',
"-XX:HeapDumpPath=${tempDir}/${instanceName}/log/OutOfHeapMemory.hnk_qffbridge.dmp",
// 2. JAVA 8 CONTINUOUS MONITORING: Redirects GC metrics out of stdout into a rolling log file
'-XX:+PrintGCDetails',
'-XX:+PrintGCTimeStamps',
'-XX:+PrintGCDateStamps',
'-XX:+PrintTenuringDistribution',
"-Xloggc:${tempDir}/${instanceName}/log/gc.log", // Routes output to a file
'-XX:+UseGCLogFileRotation', // Enables rolling files
'-XX:NumberOfGCLogFiles=5', // Retains 5 log historical segments
'-XX:GCLogFileSize=50M', // Rotates after a segment hits 50MB
// 3. Your core RMI maintenance intervals
'-Dsun.rmi.dgc.server.gcInterval=0x7FFFFFFFFFFFFFFE',
'-Dsun.rmi.dgc.client.gcInterval=0x7FFFFFFFFFFFFFFE'
}
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)