dry reducing max rows in memory. What is your druid.indexer.fork.property.druid.processing.buffer.sizeBytes? You can set this to a max of 2 GB (make sure you also increase -XX:MaxDirectMemorySize in druid.indexer.runner.javaOptsArray. Basically you can set the buffer size to max of 2 GB and if you still get the error then reduce max rows in memory and also set create bitmap index to false for string fields you will definitely not be using in a filter.