thread 'main' panicked at 'Too many open files.
Describe the bug
] File limit higher than batch size. Can increase speed by increasing batch size '-b 1048476'.
thread 'main' panicked at 'Too many open files. Please reduce batch size. The default is 5000. Try -b 2500.', src/scanner/mod.rs:132:25
note: run with RUST_BACKTRACE=1environment variable to display a backtrace
When Running:
rustscan 192.168.1.0/24 -t 500 -b 1500 -- -A 10.10.10.74
Using Docker
To Reproduce Just use the command I typed in
Expected behavior Rust scan running normally
Screenshots

Desktop (please complete the following information): Linux kali 5.14.0-kali4-amd64 #1 SMP Debian 5.14.16-1kali1 (2021-11-05) x86_64 GNU/Linux
Running into the same error message:
$ rustscan -b 2500 -a target.thm -- -A -sC Automatically increasing ulimit value to 1000. thread 'main' panicked at 'Too many open files. Please reduce batch size. The default is 5000. Try -b 2500.', src/scanner/mod.rs:138:29 stack backtrace: 0: 0x555b6a8944ba -
1: 0x555b6a7691cc - 2: 0x555b6a893c26 - 3: 0x555b6a89361a - 4: 0x555b6a892ee7 - 5: 0x555b6a882133 - 6: 0x555b6a88210c - 7: 0x555b6a8820ea - 8: 0x555b6a86892f - 9: 0x555b6a86a721 - 10: 0x555b6a87a066 - 11: 0x555b6a8820c3 - 12: 0x555b6a871e05 - 13: 0x7f1116b0118a - 14: 0x7f1116b01245 - 15: 0x555b6a6d90aa - 16: 0x0 - zsh: IOT instruction rustscan -b 2500 -a target.thm -- -A -sC $ uname -a
Linux redacted 6.1.0-kali5-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.12-1kali2 (2023-02-23) x86_64 GNU/Linux
Tried a log-out/-in but it didn't help :shrug:
Fixed it with a reboot and a config-file edit: the problem was probably the values in ~/.rustscan.toml.
I updated:
batch_size = 2000(from1000)ulimit = 5000(from1000)