From 9165752f55a355fac9f4be2f72e3796ca3b76e18 Mon Sep 17 00:00:00 2001 From: David Grier Date: Wed, 3 Jun 2020 03:05:30 +0000 Subject: [PATCH] heap opts --- .../confluent-community-broker/files/confluent-kafka.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/roles/confluent-community-broker/files/confluent-kafka.service b/playbooks/roles/confluent-community-broker/files/confluent-kafka.service index 71d30d2..af49cce 100644 --- a/playbooks/roles/confluent-community-broker/files/confluent-kafka.service +++ b/playbooks/roles/confluent-community-broker/files/confluent-kafka.service @@ -6,4 +6,4 @@ ExecStart=/usr/bin/kafka-server-start /etc/kafka/server.properties LimitNOFILE=1000000 TimeoutStopSec=180 Restart=no -Environment=KAFKA_OPTS=-javaagent:/opt/prometheus/jmx_prometheus_javaagent-0.12.0.jar=7071:/opt/prometheus/kafka-2_0_0.yml +Environment="KAFKA_OPTS=-javaagent:/opt/prometheus/jmx_prometheus_javaagent-0.12.0.jar=7071:/opt/prometheus/kafka-2_0_0.yml" "KAFKA_HEAP_OPTS=-Xms6g -Xmx6g -XX:MetaspaceSize=96m -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:G1HeapRegionSize=16M -XX:MinMetaspaceFreeRatio=50 -XX:MaxMetaspaceFreeRatio=80"