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 2019/04/22 23:36:49 UTC
[GitHub] [pulsar] merlimat opened a new pull request #4104: Reduce memory
used in ClientCnx for pending lookups
merlimat opened a new pull request #4104: Reduce memory used in ClientCnx for pending lookups
URL: https://github.com/apache/pulsar/pull/4104
### Motivation
Currently, each `ClientCnx` has a blocking queue for the max number of pending lookup requests. By default that ends up using an array of 45K objects. When a single process handles many connections (eg: broker or proxy), that will end up using 200K per connection just for this.
### Modifications
Instead of using the fixed array size, use semaphore and a `ConcurrentLinkedQueue`
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services