sqlmapproject/sqlmap · error · SqlmapSyntaxException

maximum number of used threads is

Error message

maximum number of used threads is %d avoiding potential connection issues

What it means

Startup resource guard in _basicOptionValidation: when --threads exceeds the compiled MAX_NUMBER_OF_THREADS and 'skipThreadCheck' is not set in conf, sqlmap refuses to start to avoid saturating the target with connections and triggering connection errors/bans.

Solutions

  1. Lower the --threads value to the reported maximum or below
  2. Set skipThreadCheck in a config file or via --skip-thread-check equivalent if you intentionally want more threads
  3. Leave --threads at the default (1) for stealthy runs
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at lib/core/option.py:2968 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of sqlmapproject/sqlmap@0a35b20e39 (2026-08-26). Data as JSON: /api/errors/58a1e310babfcd90. Report an issue: GitHub.

Appendix: source

Thrown at lib/core/option.py:2968

            re.compile(conf.crawlExclude)
        except Exception as ex:
            errMsg = "invalid regular expression '%s' ('%s')" % (conf.crawlExclude, getSafeExString(ex))
            raise SqlmapSyntaxException(errMsg)

    if conf.scope:
        try:
            re.compile(conf.scope)
        except Exception as ex:
            errMsg = "invalid regular expression '%s' ('%s')" % (conf.scope, getSafeExString(ex))
            raise SqlmapSyntaxException(errMsg)

    if conf.dumpTable and conf.dumpAll:
        errMsg = "switch '--dump' is incompatible with switch '--dump-all'"
        raise SqlmapSyntaxException(errMsg)

    if conf.threads > MAX_NUMBER_OF_THREADS and not conf.get("skipThreadCheck"):
        errMsg = "maximum number of used threads is %d avoiding potential connection issues" % MAX_NUMBER_OF_THREADS
        raise SqlmapSyntaxException(errMsg)

    if conf.forms and not any((conf.url, conf.googleDork, conf.bulkFile)):
        errMsg = "switch '--forms' requires usage of option '-u' ('--url'), '-g' or '-m'"
        raise SqlmapSyntaxException(errMsg)

    if conf.crawlExclude and not conf.crawlDepth:
        errMsg = "option '--crawl-exclude' requires usage of switch '--crawl'"
        raise SqlmapSyntaxException(errMsg)

    if conf.safePost and not conf.safeUrl:
        errMsg = "option '--safe-post' requires usage of option '--safe-url'"
        raise SqlmapSyntaxException(errMsg)

    if conf.safeFreq and not any((conf.safeUrl, conf.safeReqFile)):
        errMsg = "option '--safe-freq' requires usage of option '--safe-url' or '--safe-req'"
        raise SqlmapSyntaxException(errMsg)

    if conf.safeReqFile and any((conf.safeUrl, conf.safePost)):

View on GitHub (pinned to 0a35b20e39)