code: public static int getBootstrapMaxThreads() {
          // Base the bootstrap thread on proc count if not specified
          int cpuCount = ProcessorInfo.availableProcessors();
          int defaultThreads = cpuCount * 2;
          String maxThreads = WildFlySecurityManager.getPropertyPrivileged(BOOTSTRAP_MAX_THREADS, null);
          if (maxThreads != null && maxThreads.length() > 0) {
              try {
                  int max = Integer.decode(maxThreads);
                  defaultThreads = Math.max(max, 1);
              } catch(NumberFormatException ex) {
                  ServerLogger.ROOT_LOGGER.failedToParseCommandLineInteger(BOOTSTRAP_MAX_THREADS, maxThreads);
              }
          }
          return defaultThreads;
      }
docs: Determine the number of threads to use for the bootstrap service container. This reads
  the {@link #BOOTSTRAP_MAX_THREADS} system property and if not set, defaults to 2*cpus.
  @see Runtime#availableProcessors()
  @return the maximum number of threads to use for the bootstrap service container.