Report this

What is the reason for this report?

how to tune ulimit on my server?

Posted on August 29, 2014

Hello. I have ubuntu 14-04 + LAMP I need that ulimit -s unlimited



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

you cannot go unlimited, but you can do this:

edit /etc/security/limits.conf (changing root to * if you need it for everybody – NOT ADVISED!!!)

root soft  nofile 163840
root hard  nofile 163840

next, edit /etc/pam.d/common-session and add this line

session required pam_limits.so

reboot, you should be set.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.