From eaf9ebd4527a0ce2706c14c92638e8cd00484280 Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Fri, 19 Jan 2018 15:32:59 +0100 Subject: [PATCH] Evaluates JVM memory limit awareness Interesting input for #112, for use with broker and zk pods in addition to KAFKA_HEAP_OPTS. --- jmx/50kafka.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/jmx/50kafka.yml b/jmx/50kafka.yml index 91e1765f..30a390b1 100644 --- a/jmx/50kafka.yml +++ b/jmx/50kafka.yml @@ -17,8 +17,10 @@ spec: image: solsson/kafka-prometheus-jmx-exporter@sha256:a23062396cd5af1acdf76512632c20ea6be76885dfc20cd9ff40fb23846557e8 command: - java - - -Xmx64M - - -XX:MaxMetaspaceSize=32m + - -XX:+UnlockExperimentalVMOptions + - -XX:+UseCGroupMemoryLimitForHeap + - -XX:MaxRAMFraction=1 + - -XshowSettings:vm - -jar - jmx_prometheus_httpserver.jar - "5556"