public static long getMaxMemoryBytes() {
    return Runtime.getRuntime().maxMemory();
  }
Returns the {@code -Xmx} JVM property in bytes according to {@link Runtime#maxMemory()}.
planetiler-core/src/main/java/com/onthegomap/planetiler/stats/ProcessInfo.java