dbus-daemon opening too many files
Platform: PCBSD x86-64 9.0 release.
Hopefully this is the right forum, as dbus-daemon seems to mostly affect the general usage of KDE and other application communication, and doesn't seem to be a problem without KDE (I haven't evaluated whether it also happens with other window managers).
After some forum searching here, on other BSD forums and elsewhere, I've confirmed that dbus-daemon is taking up the max allowed open files, and is pegging at 100% of one CPU core, and basically bringing the system to a crawl even though multiple other cores should be available.
here is what I have confirmed:
dbus-daemon running at 100% CPU, owned by my login (not root)
the PID is 85033, so:
fstat -p 85033 | wc -l
fstat | wc-l
so, nearly all of the open files are from dbus-daemon
per other posts suggesting a file limit was reached:
So, it has run into an open file limit. At this point, it isn't clear to me what the next step is for troubleshooting. Logging off or killing off all the user processes gets me back to a functioning system for awhile, but this has recurred, so there is something that is causing all of these open files, and I'd like to prevent this for me in the future, and for others who might benefit in searching this forum.
KDE bug posts (from a few years ago) suggested that other processes may have been causing dbus to open files, but as these were a few years ago, and I was not (knowingly) running the programs mentioned, I have not evaluated other programs.
Any help in getting to the root cause would be greatly appreciated, as I am not sure how to troubleshoot dbus-daemon opening files.