使用的是 UnpooledByteBufAllocator.DEFAULT 创建 Bytebuf ,底层实现是 directBuffer 。
我认为他是 Unpooled 的,所以我没有释放它。netty 的检测机制给我报警了。
报警信息是:
ByteBuf.release() was not called before it's garbage-collected
使用的是 UnpooledByteBufAllocator.DEFAULT 创建 Bytebuf ,底层实现是 directBuffer 。
我认为他是 Unpooled 的,所以我没有释放它。netty 的检测机制给我报警了。
报警信息是:
ByteBuf.release() was not called before it's garbage-collected