+
 新版

netty4 使用PooledByteBufAllocator无法分配PooledByteBuf

cuckoocs 发布于 2017/09/29 14:25
阅读 2K+
收藏 1

我在使用netty4的时候,bootstrap 的 option 设置Allocator使用PooledByteBufAllocator,但是在 handler 中取的却是UnpooledUnsafeNoCleanerDirectByteBuf,并不是期望的PooledByteBuf类型。导致现在内存不断的升高。求高人指导!

加载中
0
cuckoocs
cuckoocs

据说是因为PooledByteBufAllocator的内存是和线程有关系

OSCHINA
登录后可查看更多优质内容
返回顶部
顶部