protected int freeSize() {
        return this.free.size();
    }
the total free memory both unallocated and in the free list
clients/src/main/java/org/apache/kafka/clients/producer/internals/BufferPool.java