himanshug commented on a change in pull request #7606: Set direct memory if 
unable to detect JVM config
URL: https://github.com/apache/incubator-druid/pull/7606#discussion_r282209983
 
 

 ##########
 File path: 
server/src/main/java/org/apache/druid/guice/DruidProcessingModule.java
 ##########
 @@ -157,9 +157,16 @@ private void verifyDirectMemory(DruidProcessingConfig 
config)
       }
     }
     catch (UnsupportedOperationException e) {
+      log.debug("Checking for direct memory size is not support on this 
platform: %s", e);
       log.info(
-          "Could not verify that you have enough direct memory, so I hope you 
do! Error message was: %s",
-          e.getMessage()
+          "Unable to determine max direct memory size. If 
-XX:MaxDirectMemorySize is set, make sure "
 
 Review comment:
   if above change is made then this should be something like...
   
   "Unable to determine max direct memory size. If 
druid.processing.buffer.sizeBytes is explicitly set then 
-XX:MaxDirectMemorySize to at least 'druid.processing.buffer.sizeBytes * 
(druid.processing.numMergeBuffers[%,d] + druid.processing.numThreads[%,d] + 1)' 
or else to at least 25% of maximum heap size."

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to