From bd4d94568e3bbb0fcaac89c4e01e51de26615f60 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 19 Jul 2021 12:46:21 -0400 Subject: [PATCH] Add -XX:+AlwaysPreTouch option for Zookeeper --- roles/pvc/templates/zookeeper/environment.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/pvc/templates/zookeeper/environment.j2 b/roles/pvc/templates/zookeeper/environment.j2 index 2367ed8..defcf3f 100644 --- a/roles/pvc/templates/zookeeper/environment.j2 +++ b/roles/pvc/templates/zookeeper/environment.j2 @@ -11,6 +11,6 @@ JMXLOCALONLY=false # Increase the maximum buffer size from 1048575 (1MB) to 67108864 (64MB); required to allow a single `create` # transaction, in the /api/v1/restore specifically, of >1MB of data; 64MB seems a reasonable limit given my # cluster is only ~5.2MB of raw JSON data and beyond 12x that seems like a cluster too large for PVC. -JAVA_OPTS="-Djava.net.preferIPv4Stack=True -Djute.maxbuffer=67108864 -Xms{{ pvc_zookeeper_heap_limit }} -Xmx{{ pvc_zookeeper_heap_limit }} -Xss{{ pvc_zookeeper_stack_limit }}" +JAVA_OPTS="-Djava.net.preferIPv4Stack=True -Djute.maxbuffer=67108864 -Xms{{ pvc_zookeeper_heap_limit }} -Xmx{{ pvc_zookeeper_heap_limit }} -Xss{{ pvc_zookeeper_stack_limit }} -XX:+AlwaysPreTouch" JAVA=/usr/bin/java CLASSPATH="/etc/zookeeper/conf:/usr/share/java/jline.jar:/usr/share/java/log4j-1.2.jar:/usr/share/java/xercesImpl.jar:/usr/share/java/xmlParserAPIs.jar:/usr/share/java/netty.jar:/usr/share/java/slf4j-api.jar:/usr/share/java/slf4j-log4j12.jar:/usr/share/java/zookeeper.jar"