Question

how to tune ulimit on my server?

  • Posted on August 29, 2014
  • bronskiyAsked by bronskiy

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

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.