code: protected void parseMemInfo(String[] memInfoFile) throws IOException {
      double memTotalGB = 0;
      Pattern pattern = Pattern.compile("MemTotal:[ \t]+([0-9]+)[ \t]+kB");
      for (String line : memInfoFile) {
        Matcher matcher = pattern.matcher(line);
        if (matcher.find()) {
          memTotalGB = Double.parseDouble(matcher.group(1)) / 1000000d;
          break;
        }
      }
      ttUtilization.setMemTotalGB(memTotalGB);
    }
docs: read total memory from /proc directory