-
Hi, and: strimzi-kafka-operator/docker-images/operator/scripts/launch_java.sh Lines 26 to 29 in b0a575f I assume the goal of these two configs is that the app does not encounter the problem of oom cause it's running in container. My questions are:
The questions might not be related to the actual use of the strimzi or kafka. Any insights are appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The aim is to minimize OoM occurrences. But I don't think you can really be 100% sure. There are also various use cases - some users have one Kafka cluster, while some have tens or hundreds of different resources. So it is hard to find one setting to fit them all.
IIRC this controls the amount of RAM which will go to the Java heap. That is only a small chunk of the memory used by a Java application. So it looks like very little, but the other parts of memory take a fairly big chunk of it when you give the process only something like 384Mi by default. The script allows users to tune these numbers when needed -> so for example if you decide to give the operator 1Gi of memory because you run many clusters, it might be possible to tune this number as well. |
Beta Was this translation helpful? Give feedback.
The aim is to minimize OoM occurrences. But I don't think you can really be 100% sure. There are also various use cases - some users have one Kafka cluster, while some have tens or hundreds of different resources. So it is hard to find one setting to fit them all.
IIRC this controls the amount of RAM which will go to the Java heap. That is only a small chunk of the memory used by a Java application. So it looks like very little, but the other parts of memory take a fairly big chunk of it when you give the process o…