public long getAvailableMemorySizeInBytes() {
    return totalMemorySizeInBytes - allocatedMemorySizeInBytes;
  }
Get available memory size in bytes of memory manager
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/memory/MemoryManager.java