@Override
    protected PossibleLogImporters doInBackground() throws Exception {
      publish(Boolean.TRUE);
      String text = StringUtils.substring(textArea.getText(), 0, 20000);
      LOGGER.info("Will process " + text.length() + " chars from clipboard");
      final long start = System.currentTimeMillis();
      final Collection<LogImporter> logImporters = getOtrosApplication().getAllPluginables().getLogImportersContainer().getElements();

      final PossibleLogImporters possibleLogImporters = Utils.detectPossibleLogImporter(logImporters, text.getBytes());
      long duration = System.currentTimeMillis() - start;
      LOGGER.debug("Finished log format detection, it took " + duration + "ms, have found " + possibleLogImporters.getLogImporter());

      return possibleLogImporters;
    }
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