From b0a5115097eb1fb30a390c0dc5da64edb60ed2dc Mon Sep 17 00:00:00 2001 From: Mark Payne Date: Fri, 19 Dec 2014 14:25:26 -0500 Subject: [PATCH] NIFI-186: Added additional args to bootstrap conf file --- .../src/main/resources/conf/bootstrap.conf | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/nar-bundles/framework-bundle/framework/resources/src/main/resources/conf/bootstrap.conf b/nar-bundles/framework-bundle/framework/resources/src/main/resources/conf/bootstrap.conf index 37ec474575..6208560ffb 100644 --- a/nar-bundles/framework-bundle/framework/resources/src/main/resources/conf/bootstrap.conf +++ b/nar-bundles/framework-bundle/framework/resources/src/main/resources/conf/bootstrap.conf @@ -1,3 +1,9 @@ +# Java command to use when running NiFi +java=java + +# Username to use when running NiFi. This value will be ignored on Windows. +run.as= + # Configure where NiFi's lib and conf directories live lib.dir=./lib conf.dir=./conf @@ -15,8 +21,14 @@ java.arg.3=-Xmx512m # Enable Remote Debugging #java.arg.debug=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000 -# Java command to use when running NiFi -java=java +java.arg.4=-Djava.net.preferIPv4Stack=true -# Username to use when running NiFi. This value will be ignored on Windows. -run.as= +# allowRestrictedHeaders is required for Cluster/Node communications to work properly +java.arg.5=-Dsun.net.http.allowRestrictedHeaders=true +java.arg.6=-Djava.protocol.handler.pkgs=sun.net.www.protocol + +# Java 7 and below have issues with Code Cache. The following lines allow us to run well even with +# many classes loaded in the JVM. +java.arg.7=-XX:+ReservedCodeCacheSize=256m +java.arg.8=-XX:CodeCacheFlushingMinimumFreeSpace=10m +java.arg.9=-XX:+UseCodeCacheFlushing