From ddfc529abfca35014d73af61ae072f59df864a0b Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 20 Nov 2015 18:54:40 +0100 Subject: [PATCH] for teamcity tests, use the same gc-related VM options as for production to get similar performance characteristics --- build/scripts/utils.gant | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/scripts/utils.gant b/build/scripts/utils.gant index 3eba0f04df05..79d538dd3c44 100644 --- a/build/scripts/utils.gant +++ b/build/scripts/utils.gant @@ -338,6 +338,7 @@ binding.setVariable("commonJvmArgsForTests", { "-ea", "-Dfile.encoding=UTF-8", "-Dio.netty.leakDetectionLevel=PARANOID", +// yjpOptions("junit", "64"), // uncomment to start tests with a profiling agent (e.g. in a personal build) "-server", "-Xbootclasspath/p:${projectBuilder.moduleOutput(findModule("boot"))}", "-XX:+HeapDumpOnOutOfMemoryError", @@ -346,6 +347,8 @@ binding.setVariable("commonJvmArgsForTests", { "-Didea.system.path=${p("teamcity.build.tempDir")}/system", "-Xdebug", "-XX:ReservedCodeCacheSize=240m", + "-XX:SoftRefLRUPolicyMSPerMB=50", + "-XX:+UseConcMarkSweepGC", "-XX:-OmitStackTraceInFastThrow", jdwp ]