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