You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/12/07 12:32:50 UTC

[GitHub] [pulsar] lhotari opened a new pull request #13171: [Proxy] Fix issue when Proxy fails to start and logs about an uncaught exception

lhotari opened a new pull request #13171:
URL: https://github.com/apache/pulsar/pull/13171


   ### Motivation
   
   The Pulsar proxy fails to start when deploying the master branch version of Pulsar with the Apache Pulsar Helm chart.
   The proxy logs an obscure error message:
   ```
   2021-12-07T12:27:16,052Z [jdk.internal.loader.ClassLoaders$AppClassLoader@5ffd2b27] error Uncaught exception in thread main: Failed to start HTTP server on ports [8080]
   ```
   The reason why this happens is that the thread pool doesn't have sufficient amount of threads. Jetty reserves the threads from the main executor. The number of threads in the main executor can be configured with the `httpNumThreads` configuration parameter. (The workaround for the issue is to increase the `httpNumThreads` value until the proxy can start.)
   
   ### Modifications
   
   - add logging of the stack traces for uncaught exceptions in the proxy
   - limit the number of selector threads to 1 for the Proxy http client since it will consume a lot of threads from the main executor (50% of number of CPU cores).


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] lhotari merged pull request #13171: [Proxy] Fix issue when Proxy fails to start and logs about an uncaught exception

Posted by GitBox <gi...@apache.org>.
lhotari merged pull request #13171:
URL: https://github.com/apache/pulsar/pull/13171


   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org