Ubuntu Support Template
Ubuntu Version:
Example: 24.04.3 LTS
Desktop Environment (if applicable):
KDE Plasma but that isn’t relevant.
Problem Description:
I need to raise the number of open file descriptors on my system, but can find no authoritative information on how to do so. I should mention here that this is a home laptop computer not involved in any network other than my home wifi. I am the admin.
The first consensus recommendation from a simple Google search is editing the appropriate parameters in /etc/security/limits.conf .
But when I open this file I see only commented out lines explaining how to edit this file; it has no active content, and yet somehow my limits are 1024 for both hard and soft. If I add the following two lines
* soft nofile 2048
* hard nofile 2048
and log out and in, the limit remains 1024.
Other, more advanced sites, such as this one on superuser point me at editing files in /etc/systemd which seems like it’s the right track except this post dates from 2017, and files mentioned do not exist on my system.
So my question is, what is the recommended way to increase the max open files on my system (Ubuntu 24.04.3 LTS).
My underlying question is why is this kept such a freaking mystery.
Screenshots or Error Messages:
What I’ve Tried:
see above
Did an AI assisted search. It pointed me at the aforementioned /etc/security/limits.conf and also at /etc/sysctl.conf, which, again is a file full of commented out parameters, none of which have anything to do with file limits.