According to the kafka documentation, the heap memory allocation of 6gb is good enough for a broker. But I am constantly getting heap space out of memory issues on my Kafka deployment even with a 9 gb heap space allocation.
So my questions are:
- What producer and consumer configurations affect the heap space?
- How do the number of topics and partitions per topic affect it?
- How do I compute the heap space that is required for my kafka setup?