Slackbot
03/28/2023, 9:39 AMGian Merlino
03/28/2023, 9:54 AM-XX:MaxDirectMemorySize in druid.indexer.runner.javaOpts in middleManager/runtime.properties (whichever conf directory you're using)
2) you can use the new bin/start-druid script in Druid 25+ which sizes direct memory automatically; it may be a better fit for you
3) if you're using native batch ingestion, you can use SQL-based ingestion (https://druid.apache.org/docs/latest/multi-stage-query/index.html) which has greatly improved memory management and is less likely to run into various kinds of OutOfMemoryErrorsSaurav Chirania
03/28/2023, 9:56 AMGian Merlino
03/28/2023, 10:00 AMSaurav Chirania
03/28/2023, 10:00 AMSaurav Chirania
04/18/2023, 12:39 PM-XX:MaxDirectMemorySize when we are not passing any value?Gian Merlino
04/20/2023, 4:39 AMbin/start-druid script it's set automatically to a reasonable valueGian Merlino
04/20/2023, 4:39 AM[Mon Apr 3 14:20:49 2023] Running command[router]: bin/run-druid router /Users/gian/Documents/implytesting/apache-druid-26.0.0-SNAPSHOT/conf/druid/auto '-Xms256m -Xmx256m -XX:MaxDirectMemorySize=128m'Gian Merlino
04/20/2023, 4:39 AMbin/start-druid then default is same as -Xmx (this is a JVM thing)