code: public boolean canSystemGrantMemory(final long xmx) {
      final long freeMemSize = this.util.getOsTotalFreeMemorySize();
      if (freeMemSize == 0) {
        // Fail open.
        // On the platforms that don't support the mem info file, the returned size will be 0.
        return true;
      }
      if (freeMemSize - xmx < LOW_MEM_THRESHOLD) {
        logger.info(String.format(
            "Free memory amount minus Xmx (%d - %d kb) is less than low mem threshold (%d kb), "
                + "memory request declined.",
            freeMemSize, xmx, LOW_MEM_THRESHOLD));
        return false;
      }
      return true;
    }
docs: @param xmx Xmx for the process
  @return true if the system can satisfy the memory request
  
  Given Xmx value (in kb) used by java process, determine if system can satisfy the memory
  request.