Skip to content
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

Too Many Open Files #339

Closed
joesixpack opened this issue Aug 4, 2019 · 5 comments
Closed

Too Many Open Files #339

joesixpack opened this issue Aug 4, 2019 · 5 comments

Comments

@joesixpack
Copy link

joesixpack commented Aug 4, 2019

Ulimit is unlimited.

log.zip

@joesixpack joesixpack reopened this Aug 4, 2019
@joesixpack
Copy link
Author

joesixpack commented Aug 7, 2019

Seems to keep happening on Linux after a certain amount of time.

image

image

@LucianMincu
Copy link
Contributor

What is the output of ulimit -n in your case?

@josefcoap
Copy link

Lucian, I had the same problem yesterday with one node. If I write "ulimit -n" I get 1024 as a result. I need to change something? I must be in the installation guide?

@LucianMincu
Copy link
Contributor

LucianMincu commented Aug 9, 2019

  1. Here's a version of changing the variable of ulimit at runtime.
#!/bin/bash

#set limit
ulimit -n 65535

cd /%GOPATH%/src/github.com/ElrondNetwork/elrond-go/cmd/node/ && ./node

This will set the ulimit to 65535 for the node application.

  1. Have seen this approach on other projects in this space, and have to deal with this problem like @ethereum / geth or @ipfs Too many open files on add with daemon ipfs/kubo#3792

One of the best approach is to split this issue into actionable items - meta-issues like this are always hard to deal with and especially hard to close.

Therefore we'll leave this issue open until we can come back to it and cap the software file limit to a fixed number.

@joesixpack
Copy link
Author

joesixpack commented Aug 9, 2019

My ulimit is unlimited. I'll try 65535.

EDIT: My ulimit -n was 1024. Oops. I was not aware ulimit was per process. Always assumed it was system wide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants