Browse Source

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
Jason Tedor 9 years ago
parent
commit
0c027acbf9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      distribution/src/main/resources/config/jvm.options

+ 2 - 1
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