So I came up against this error:
Can't start applications due to "Maximum number of clients reached" error
How can I diagnose/debug "maximum number of clients reached" X errors?
With help from the above threads I identify kded5 to be the source of the problem (It's the only number that grows with time...)
❯ lsof -U +c 15 | cut -f1 -d' ' | sort | uniq -c | sort -rn | head -5
lsof: WARNING: can't stat() btrfs file system /var/lib/docker/btrfs
Output information may be incomplete.
306 Isolated\x20Web
246 Xorg
217 kded5
153 firefox
69 dbus-daemon
The problem is around 2 weeks old. I have to do a reboot every day because I am no longer able to open any new windows. I suppose I could kill that one kded5 process that I see running but I don't know if that's safe. It certainly isn't a long term solution.
How does one go about solving this?