hangc0276 commented on code in PR #3001:
URL: https://github.com/apache/bookkeeper/pull/3001#discussion_r906213652
##########
bookkeeper-server/src/main/java/org/apache/bookkeeper/conf/AbstractConfiguration.java:
##########
@@ -1060,7 +1061,7 @@ public T setAllocatorPoolingPolicy(PoolingPolicy
poolingPolicy) {
* @return the configured pooling concurrency for the allocator.
*/
public int getAllocatorPoolingConcurrency() {
- return this.getInteger(ALLOCATOR_POOLING_CONCURRENCY, 2 *
Runtime.getRuntime().availableProcessors());
+ return this.getInteger(ALLOCATOR_POOLING_CONCURRENCY,
PooledByteBufAllocator.defaultNumDirectArena());
Review Comment:
The default value of `defaultNumDirectArena` is 2 * cpus
https://github.com/netty/netty/blob/4e439264df0523fb6efce5f8f6c7c7fa74addd07/buffer/src/main/java/io/netty/buffer/PooledByteBufAllocator.java#L413-L418
--
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]