code: public static String getXmx(String option) {
          String[] args = option.split(" ");
          for (String s : args) {
              if (s.startsWith("-Xmx")) {
                  return s;
              }
          }
          return null;
      }
docs: get Xmx option
  @param option configure option
  @return -Xmx