disabling leak detection micro benchmark

Motivation:

When I run Netty micro benchmarks I get many warnings like:

WARNING: -Dio.netty.noResourceLeakDetection is deprecated. Use '-Dio.netty.leakDetection.level=simple' instead.

Modification:

-Dio.netty.noResourceLeakDetection replaced with -Dio.netty.leakDetection.level=disabled.

Result:

No warnings.
This commit is contained in:
Dmitriy Dumanskiy 2017-06-09 16:55:29 +03:00 committed by Norman Maurer
parent fd67a2354d
commit acc07fac32

View File

@ -45,7 +45,7 @@ public abstract class AbstractMicrobenchmarkBase {
protected static final String[] BASE_JVM_ARGS = {
"-server", "-dsa", "-da", "-ea:io.netty...", "-XX:+AggressiveOpts", "-XX:+UseBiasedLocking",
"-XX:+UseFastAccessorMethods", "-XX:+OptimizeStringConcat",
"-XX:+HeapDumpOnOutOfMemoryError", "-Dio.netty.noResourceLeakDetection"};
"-XX:+HeapDumpOnOutOfMemoryError", "-Dio.netty.leakDetection.level=disabled"};
static {
ResourceLeakDetector.setLevel(ResourceLeakDetector.Level.DISABLED);