Here is a result of the impact of the new setting `buffer.memory` in this other 
scenario:

Kafka cluster with 6 brokers
2 topics with 6 partitions each, one per broker
both topics well preloaded with messages of size ~100k 

Demo app with 1 consumer subscribed to both topics running a loop like
```
while(true) {
consumer.poll(100L)
Thread.sleep(1000L)
}
```
and consumer config 
```
"fetch.max.bytes"=10000000
"max.partition.fetch.bytes"=5000000
```
on Java 1.8.0_181 on MacOS

1) running this single consumer app without the memory pool (i.e. no 
`buffer.memory` set)
required  -Xmx200M -Xms200M  to avoid an OOM error.

![image](https://user-images.githubusercontent.com/6661532/45823430-9d74a480-bce5-11e8-9b05-7f4d47baaea8.png)

2) running this consumer with a memory pool defined by
"buffer.memory"=30000000
I could limit the JVM to -Xmx120M -Xms120M

![image](https://user-images.githubusercontent.com/6661532/45823540-d6ad1480-bce5-11e8-9fd9-44051f6fe7e4.png)




[ Full content available at: https://github.com/apache/kafka/pull/4934 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to