docs: public static Integer getOpenFileLimit() {
          try {
              Rlimit rlimit = new Rlimit();
              int retval =
                  getrlimit(
                      System.getProperty("os.name").equals("Linux") ? RLIMIT_NOFILE_LINUX : RLIMIT_NOFILE_MAC_OS_X,
                              rlimit);
              if (retval != 0) {
                  return null;
              } else if (rlimit.rlim_cur >= 1024) {
                  //Seems to be a sensible value that is the default or greater
                  return (int)rlimit.rlim_cur;
              } else {
                  return null;
              }
          } catch (Exception e) {
              hostLog.warn("Failed to retrieve open file limit via JNA", e);
          }
          return null;
      }