This is an automated email from the ASF dual-hosted git repository.
mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new a2cf918 Used defaults for Netty allocator used in entry cache (#1465)
a2cf918 is described below
commit a2cf918394ad9ea52ab3c035bee0223d75772024
Author: Matteo Merli <[email protected]>
AuthorDate: Thu Mar 29 17:40:07 2018 -0700
Used defaults for Netty allocator used in entry cache (#1465)
---
.../apache/bookkeeper/mledger/impl/EntryCacheImpl.java | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git
a/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/EntryCacheImpl.java
b/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/EntryCacheImpl.java
index 8aec56c..f267a6c 100644
---
a/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/EntryCacheImpl.java
+++
b/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/EntryCacheImpl.java
@@ -69,15 +69,14 @@ public class EntryCacheImpl implements EntryCache {
return ml.getName();
}
- public final static PooledByteBufAllocator ALLOCATOR = new
PooledByteBufAllocator(
- true, // preferDirect
+ public final static PooledByteBufAllocator ALLOCATOR = new
PooledByteBufAllocator(true, // preferDirect
0, // nHeapArenas,
- 1, // nDirectArena
- 8192, // pageSize
- 11, // maxOrder
- 64, // tinyCacheSize
- 32, // smallCacheSize
- 8, // normalCacheSize,
+ PooledByteBufAllocator.defaultNumDirectArena(), // nDirectArena
+ PooledByteBufAllocator.defaultPageSize(), // pageSize
+ PooledByteBufAllocator.defaultMaxOrder(), // maxOrder
+ PooledByteBufAllocator.defaultTinyCacheSize(), // tinyCacheSize
+ PooledByteBufAllocator.defaultSmallCacheSize(), // smallCacheSize
+ PooledByteBufAllocator.defaultNormalCacheSize(), //
normalCacheSize,
true // Use cache for all threads
);
--
To stop receiving notification emails like this one, please contact
[email protected].