Skip to content

Crash on OSX #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
benichmt1 opened this issue Jul 23, 2020 · 9 comments
Closed

Crash on OSX #36

benichmt1 opened this issue Jul 23, 2020 · 9 comments
Labels
bug Something isn't working

Comments

@benichmt1
Copy link

Installed with Homebrew, upon running I get the following error:

thread 'main' panicked at 'Too many open files. Please reduce batch size. The default is 5000. Try -B 2500.', src/main.rs:179:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace```

I'm on 10.15.5.
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.97. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@issue-label-bot issue-label-bot bot added the bug Something isn't working label Jul 23, 2020
@Rackme
Copy link

Rackme commented Jul 23, 2020

Copy of #25

@bee-san
Copy link
Owner

bee-san commented Jul 23, 2020

Yup! @Rackme is right. Reducing your batch count will help :)

@bee-san
Copy link
Owner

bee-san commented Jul 23, 2020

Basically, your OS can only open so many connections before it crashes. I believe Mac OS is 254. You can see how to increase that using #25 and #21 for more info :)

TL;DR rustscan -b 254 but this will be very slow, you may want to increase the limit see #21 for more info.

@benichmt1
Copy link
Author

I tried rustcan -b 254 as suggested but still get the same error.

@bee-san
Copy link
Owner

bee-san commented Jul 23, 2020

Hey! Run these 3 commands for me:

ulimit -a
ulimit -Hn
ulimit -Sn

And tell me what they output? They will show what the maximum number of open file descriptors is :)

@benichmt1
Copy link
Author

-n: file descriptors 256

@benichmt1
Copy link
Author

Looks like 250 works, not 254.

@fuomag9
Copy link

fuomag9 commented Jul 23, 2020

Same issue on WSL2, see #39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants