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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to