public long validateAndDetermineMaxSize(long maxSizeVal) {
    if ((maxSizeVal % arenaSize) > 0) {
      long oldMaxSize = maxSizeVal;
      maxSizeVal = (maxSizeVal / arenaSize) * arenaSize;
      LlapIoImpl.LOG.warn("Rounding cache size to " + maxSizeVal + " from " + oldMaxSize
          + " to be divisible by arena size " + arenaSize);
    }
    if ((maxSizeVal / arenaSize) > Integer.MAX_VALUE) {
      throw new RuntimeException(
          "Too many arenas needed to allocate the cache: " + arenaSize + ", " + maxSizeVal);
    }
    return maxSizeVal;
  }
Default max amount of bytes to force evict on failed allocation attempts 16MB. used for testing, for production
please adjust {@link ConfVars.LLAP_ALLOCATOR_MAX_FORCE_EVICTED}
llap-server/src/java/org/apache/hadoop/hive/llap/cache/BuddyAllocator.java