nuclei
nuclei copied to clipboard
[BUG] Fatal error: thread exhaustion
Is there an existing issue for this?
- [X] I have searched the existing issues.
Current Behavior
I'm currently testing different templates and have 100k in my folder. So, when I run a scan, I get this error.
Expected Behavior
Should start the scan without any error
Steps To Reproduce
nuclei -u LINK -t DIRECTORY
Relevant log output
No response
Environment
- OS: Ubuntu 22.01
- Nuclei: v3.3.1
- Go: 1.22.0
Anything else?
It's limited by resource - https://stackoverflow.com/questions/32042048/go-runtime-program-exceeds-10000-thread-limit, it's simply not possible to run that much of template.
It's possible via:
debug.SetMaxThreads(...)
Probably we can add this to utils
similar situation turned out to be a issue with setup/os rather than nuclei https://github.com/orgs/projectdiscovery/discussions/4767