Increase File limit

Hi there, Just jumped into linux for the first time since 1998.

Everything is set up well , except I need to unlock the max amount of files open, currently ulimit is showing unlimited, ulimit -s is showing 8192 and ulimit -n is showing 1024. I have edited limits.conf with the following:
root hard nofile 65535
root soft nofile 65535

This does no appear to change anything.

Can anyone help me sort this?

Thanks in advance!

You set limits for Root, what about User? (asterisk denotes wildcard function):

* hard nofile 65535
* soft nofile 65535

Did you check /etc/sysctl.conf?

fs.file-max = 65535

sudo sysctl -p

Hi there, thanks for your response, I have checked this, changed root to * and added the file-max to sysctl.conf , and its made no difference. I can change the limit manually in terminal with the ulimit command, but I want to make it perm.

Ta again

Hmmm... you could add ulimit -n 65535 to your ~/.bashrc file (If not using Oh-My-ZSH or Fish or other terminal enhancement) or to ~/.profile so that the command is run each time you log in.

Sorry im a complete noob, where do I find those files?

When viewing the contents of your Home Folder, you can tap ctl+h to reveal "hidden files". Tapping ctl+h again will re-hide them.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.