systemd and the "fd" exhaustion
UPDATE 2018/06/24: A fix just landed in systemd to fix the related issue. Few days ago I faced a quite weird error. Well, what was weird was the apparent error message. I wanted to run journalctl -f to see the last logs of a server and keep the journal open but it only returned the following error:
Failed to get journal fd: Too many open files This can happen, fd exhaustion is a common issue so let's check the current limits and settings to see if there is an actual fd exhaustion; and where it could come from. ulimit -n returns 65,535 and a lsof | wc -l returns 12,948, we are far away from a fd exhaustion.
kdecherf ~ %