Skip to content

Reset ulimit #81

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
clintongormley opened this issue Mar 22, 2010 · 6 comments
Closed

Reset ulimit #81

clintongormley opened this issue Mar 22, 2010 · 6 comments

Comments

@clintongormley
Copy link
Contributor

Hiya

I'm running ES with niofs, and after a while it hits the open file limit (default on my linux box is 1024). Any chance you can add a ulimit -n 4096 into the startup?

Not sure if 4096 is the right number, but works for me :)

thanks

Cilnt

@kimchy
Copy link
Member

kimchy commented Mar 22, 2010

It should probably set it to a higher value, 16k or 32k. If I add the ulimit to the script, it might fail if there are no permissions to set it...

@clintongormley
Copy link
Contributor Author

If ulimit fails, you could warn, no?

@kimchy
Copy link
Member

kimchy commented Mar 22, 2010

Its just that I have never seen it being set explicitly in a startup script of any server product. Might be too intrusive. Have you seen it somewhere?

@clintongormley
Copy link
Contributor Author

Not that I know of, I just thought that it goes along with the DoTheRightThing aspect of ES, but as you like :)

@asereda
Copy link

asereda commented Mar 29, 2010

Hi Clint,
usually you set max open files limits in /etc/security/limits.conf (on RedHat flavours). Linux system will not allow a simple user to set anything higher than those limits. You can define max open files per-user by adding the following line:

elasticsearch hard nofile 8096

Andrei.

@clintongormley
Copy link
Contributor Author

Thanks Andrei - I wasn't aware of that

clint

This issue was closed.
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