On Thu, Mar 2, 2023 at 2:35 AM Roberto Ragusa mail@robertoragusa.it wrote:
On 2/27/23 13:44, Richard W.M. Jones wrote:
It turns out that the default open file limit (1024!) is too low. To change this and fix the problem:
# systemctl edit httpd
This low limit can be an issue for many processes. I don't understand why it is still so low in modern machines. I've raised it a lot, many years ago, by editing /etc/security/limits.conf, but I now see I get again 1024. My guess is systemd is deciding by itself, and not respecting my settings.
Regards.
Systemd is started really early and seems to use the defaults. Anything started from systemd needs to explicitly override in the startup script. Looking at the initramfs I don't see limits.conf in there so when the switchroot happens and systemd gets started it would have the default limits.