PooledUnsafeDirectByteBuf not found in DirectMemory
问题 I am using Netty 4.1.17-Final. I wrote the code to send and receive 100 MB random ASCII. Decoder does not read until ByteBuf becomes 100 MB. @Override public void decode(ByteBuffer _in, List<Object> _out) { if (_in.remaining() == size) { // size = 100 * 1024 * 1024 _in.get(new byte[size]); } } Therefore, Netty buffers 100 MB, but it was not found even by monitoring Direct Memory. System.out.println(sun.misc.SharedSecrets.getJavaNioAccess().getDirectBufferPool().getMemoryUsed());