Skip to content

Commit 805b27f

Browse files
committed
Adapts to Java 8+, but still guessing the numbers
1 parent 6e713e7 commit 805b27f

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

50kafka.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ spec:
2828
command:
2929
- java
3030
- -Xmx80M
31-
# TODO OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=16m; support was removed in 8.0
32-
- -XX:MaxPermSize=16m
31+
- -XX:MaxMetaspaceSize=16m
3332
- -Xss1m
3433
- -jar
3534
- jmx_prometheus_httpserver.jar

test/metrics.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# kubectl apply -f test/metrics.yml && kubectl scale --replicas=0 deploy/metrics && kubectl scale --replicas=1 deploy/metrics
2-
# kubectl exec -ti metrics-... -- tail -f /tmp/loglast | egrep 'time_total|^jmx_scrape_duration_seconds|^java_lang_memory_heapmemoryusage_used|^java_lang_memory_nonheapmemoryusage_used'
2+
# kubectl exec metrics-... -- tail -f /tmp/loglast | egrep 'time_total|^jmx_scrape_duration_seconds|^java_lang_memory_heapmemoryusage_used|^java_lang_memory_nonheapmemoryusage_used'
33
---
44
kind: ConfigMap
55
metadata:

zookeeper/50pzoo.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ spec:
3131
command:
3232
- java
3333
- -Xmx80M
34-
# TODO OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=16m; support was removed in 8.0
35-
- -XX:MaxPermSize=16m
34+
- -XX:MaxMetaspaceSize=16m
3635
- -Xss1m
3736
- -jar
3837
- jmx_prometheus_httpserver.jar

zookeeper/51zoo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ spec:
3535
- java
3636
- -Xms39M
3737
- -Xmx80M
38-
- -XX:MaxPermSize=16m
38+
- -XX:MaxMetaspaceSize=16m
3939
- -Xss1m
4040
- -jar
4141
- jmx_prometheus_httpserver.jar

0 commit comments

Comments
 (0)