Hi,
I received following error for real-time tasks.
Not enough direct memory. Please adjust -XX:MaxDirectMemorySize, druid.processing.buffer.sizeBytes, druid.processing.numThreads, or druid.processing.numMergeBuffers: maxDirectMemory[1,860,698,112], memoryNeeded[6,442,450,944] = druid.processing.buffer.sizeBytes[1,073,741,824] * (druid.processing.numMergeBuffers[2] + druid.processing.numThreads[3] + 1)
``
So either of the above configurations can be adjusted to overcome above error. However the runtime.properties file for middle manager doesn’t have any of these properties or they are named slightly differently.
druid.service=druid/middleManager
druid.plaintextPort=8091
Number of tasks per middleManager
druid.worker.capacity=3
Task launch parameters
druid.indexer.runner.javaOpts=-server -Xmx2g -Duser.timezone=UTC -Dfile.encoding=UTF-8 -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager
druid.indexer.task.baseTaskDir=var/druid/task
HTTP server threads
druid.server.http.numThreads=25
Processing threads and buffers on Peons
druid.indexer.fork.property.druid.processing.buffer.sizeBytes=536870912
druid.indexer.fork.property.druid.processing.numThreads=2
Hadoop indexing
druid.indexer.task.hadoopWorkingPath=var/druid/hadoop-tmp
``
So we don’t have druid.processing.numThreads but rather have druid.indexer.fork.property.druid.processing.numThreads. Is this supposed to be same?
No matter what i set any of the following properties to, i get the same error. Where exactly are the following properties to be changed if not in runtime.properties under config/middlemanager?
*druid.processing.buffer.sizeBytes, druid.processing.numThreads, druid.processing.numMergeBuffers*
Thanks,
Prathamesh