From 0c027acbf99e2082e552037a54b2d6b810af6afb Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Wed, 31 Aug 2016 08:11:03 -0400 Subject: [PATCH] Explicitly disable Netty key set replacement Netty replaces the backing set for the selector implementation. The value of doing this is questionable, and doing this requires permissions that we are not going to grant. This commit explicitly disables this optimization rather than relying on it failing due to lack of permissions. Relates #20249 --- distribution/src/main/resources/config/jvm.options | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/distribution/src/main/resources/config/jvm.options b/distribution/src/main/resources/config/jvm.options index 2feba025509..63eba4789fc 100644 --- a/distribution/src/main/resources/config/jvm.options +++ b/distribution/src/main/resources/config/jvm.options @@ -59,8 +59,9 @@ # use our provided JNA always versus the system one -Djna.nosys=true -# flag to explicitly tell Netty to not use unsafe +# flags to keep Netty from being unsafe -Dio.netty.noUnsafe=true +-Dio.netty.noKeySetOptimization=true ## heap dumps