ivankelly commented on a change in pull request #3698: Adjust the serving 
threads to have a minimum of  threads
URL: https://github.com/apache/pulsar/pull/3698#discussion_r262023860
 
 

 ##########
 File path: 
pulsar-broker-common/src/main/java/org/apache/pulsar/broker/ServiceConfiguration.java
 ##########
 @@ -146,7 +146,7 @@
             doc = "Number of threads to use for HTTP requests processing"
                 + " Default is set to `2 * 
Runtime.getRuntime().availableProcessors()`"
         )
-    private int numHttpServerThreads = 2 * 
Runtime.getRuntime().availableProcessors();
+    private int numHttpServerThreads = Math.max(4, 2 * 
Runtime.getRuntime().availableProcessors());
 
 Review comment:
   I've been putting it at 16 to get around that issue, though admittedly I 
pulled that number out of thin air.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to