Load tests- restrict GC parameters usage to supported versions
@@ -198,6 +198,7 @@ pipeline {
def java_home = sh(script: ".ci/load/scripts/fetch_sdk.sh ${params.jvm_version}", returnStdout: true).trim()
def major_jdk_version = readJSON(file: "/tmp/${params.jvm_version}/jdk.json")['version']
def is_java7 = major_jdk_version.startsWith("7")
+ def is_java8 = major_jdk_version.startsWith("8")
sh(script: "${java_home}/bin/java -version");
@@ -228,8 +229,10 @@ pipeline {
// GC log
cmd = "${cmd} -XX:+PrintGCDetails"
+ if (is_java7 || is_java8) {
cmd = "${cmd} -XX:+PrintGCTimeStamps"
cmd = "${cmd} -XX:+PrintTenuringDistribution"
+ }
cmd = "${cmd} -Xloggc:${WORKSPACE}/gc.log"
// compilation log
