Vincent-bin opened a new issue, #215: URL: https://github.com/apache/arrow-java/issues/215
### Describe the bug, including details regarding any error messages, version, and platform. Since when we use netty as my memory allocator manager, I found that direct memory is not released after vector is closed. ``` Field field = new Field("test", FieldType.nullable(new ArrowType.Utf8()), null); RootAllocator allocator = new RootAllocator(Long.MAX_VALUE); FieldVector vector = field.createVector(allocator); for (int i = 0; i < 100000; i++){ ((VarCharVector)vector).setSafe(i, "test".getBytes(StandardCharsets.UTF_8)); } System.out.println("before close memory: " + usedDirectMemory() + " bytes"); //before close memory: 4194304 bytes vector.close(); allocator.close(); System.out.println("after closed memory: " + usedDirectMemory() + " bytes"); //after closed memory: 4194304 bytes ``` I can address the problem that if the inner allocator `PooledByteBufAllocator` won't free the memory chunk , I am not sure if this is expected. ### Component(s) Java -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@arrow.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org