@Override
    protected void done() {
      LOGGER.info("Done");
      progressBar.setIndeterminate(false);
      progressBar.setString("Log format detection completed");
      if (isCancelled()) {
        return;
      }
      try {
        final PossibleLogImporters possibleLogImporters = get();
        logImporterJComboBox.setEnabled(possibleLogImporters.getLogImporter().isPresent());
        logImporterCbxModel.removeAllElements();
        possibleLogImporters.getAvailableImporters().forEach(logImporterCbxModel::addElement);
        possibleLogImporters.getLogImporter().ifPresent(logImporterJComboBox::setSelectedItem);
        if (possibleLogImporters.getAvailableImporters().isEmpty()) {
          statusLabel.setText("Defined log parser can't parse input");
          statusLabel.setIcon(Icons.STATUS_UNKNOWN);
        } else {
          statusLabel.setText("Can parse log from clipboard");
          statusLabel.setIcon(Icons.STATUS_OK);
        }
        updateImportButtonState();
      } catch (Exception e) {
        e.printStackTrace();
      }
    }
Get the maximal heap memory in GB. If it is less than 1GB it will be return 1GB.
olv-core/src/main/java/pl/otros/logview/gui/actions/ParseClipboard.java