There seem to be conflicting schools of thought when it comes to setting the various heap, GC, etc java params for a Kafka process.
One group says to edit the kafka-server-start
bash file
Another group says to set a system var and let the kafka startup pick it up
In the latest instructions from Confluent the follow 'recommendations' appear:
-Xms6g -Xmx6g -XX:MetaspaceSize=96m -XX:+UseG1GC -XX:MaxGCPauseMillis=20
-XX:InitiatingHeapOccupancyPercent=35 -XX:G1HeapRegionSize=16M
-XX:MinMetaspaceFreeRatio=50 -XX:MaxMetaspaceFreeRatio=80
What's the official Confluent party-line on where to set these? (I assume the defaults don't use these to accommodate smaller test machines)