Sadly broker will not start Please adjust -XX:MaxDirectMemorySize

Hi,

I can to start my broker and goes round and round every time I try and adjust memory.

I have 1 gig of ram

How to I simply start my broker? Below is ho9w I start.

/usr/bin/java -Xmx256m -XX:MaxDirectMemorySize=256m -Duser.timezone=UTC -Dfile.encoding=UTF-8 -classpath /var/druid-<%=@version%>/lib/*:/var/druid-<%=@version%>/config/broker io.druid.cli.Main server broker

  1. Not enough direct memory. Please adjust -XX:MaxDirectMemorySize, druid.processing.buffer.sizeBytes, or druid.processing.numThreads: maxDirectMemory[259,522,560], memoryNeeded[2,147,483,648] = druid.processing.buffer.sizeBytes[1,073,741,824] * ( druid.processing.numThreads[1] + 1 )

at io.druid.guice.DruidProcessingModule.getIntermediateResultsPool(DruidProcessingModule.java:106)

With your current setup druid expects you to start up with 2Gb minimum. As it is written in that log file. Trust me, it speaks the truth.

If you only have 1GB of ram try this line:

/usr/bin/java -Xmx256m -Duser.timezone=UTC -Dfile.encoding=UTF-8 -classpath /var/druid-<%=@version%>/lib/*:/var/druid-<%=@version%>/config/broker io.druid.cli.Main server broker

And set druid.processing.buffer.sizeBytes to 134217728 in your configuration.

Hi,

still not working despite the below:

/usr/bin/java -Xmx256m -Duser.timezone=UTC -Dfile.encoding=UTF-8 -classpath /var/druid-0.8.1/lib/*:/var/druid-0.8.1/config/broker io.druid.cli.Main server broker

druid.host=192.241.196.64:8082

druid.service=broker

druid.port=8082

druid.processing.numThreads=2

druid.zk.service.host=1.zk.do.development.sf.testcom:2181

druid.processing.buffer.sizeBytes=134217728

I also tried with one thread. I have one gig of ram.

  1. Not enough direct memory. Please adjust -XX:MaxDirectMemorySize, druid.processing.buffer.sizeBytes, or druid.processing.numThreads: maxDirectMemory[259,522,560], memoryNeeded[402,653,184] = druid.processing.buffer.sizeBytes[134,217,728] * ( druid.processing.numThreads[2] + 1 )

So please help.

Thanks

Hi David

I don’t see “-XX:MaxDirectMemorySize”

anywhere in

/usr/bin/java -Xmx256m -Duser.timezone=UTC -Dfile.encoding=UTF-8 -classpath /var/druid-0.8.1/lib/*:/var/druid-0.8.1/config/broker io.druid.cli.Main server broker