Created attachment 114725 [details] huge memory I have a program that sends error notifications to system. Sometimes when I' m not around for some time and it sends thousands of notifications to system, the plasmashell process could eat a lot of memory, like the attached picture shows, making the system unresponsive.
What program is spamming you with notifications?
My own program written by electron using the https://electronjs.org/docs/tutorial/notifications notifications API to send alerts.
So you could just have your app not send thousands of pointless notifications, then? Not saying there isn't a bug in plasmashell here, of course, but there's no particular reason to stress the system for no reason. :)
Does disabling notification history help?
What type of notification? Can you capture one in dbus-monitor or post your electron line.
It' s just that simple text only electron notification sent like: let myNotification = new Notification('Title', { body: 'Lorem Ipsum Dolor Sit Amet' }) myNotification.onclick = () => { console.log('Notification clicked') } A single program would send a error notification every 3 seconds. But I have a bunch of them monitoring many programs on servers. In rare cases I left the computer for a long time and things went wrong I would see this. I would try disabling notification history, I feel it would help. The ability to set a history size would be better.
The problem is present in Debian Buster with plasma-workspace 4:5.13.5-1+b1. I've tried looking for the source of the problem by closing pretty much every program, and let Plasma up, and I found the source of the problem is a flood of notifications from BackInTime (1.1.24-0.1) due to wrong permissions in one directory with many files, the backup process returned lots of errors. After that, plasma reached +13Gb of RAM: $ ps -e -orss=,args= | sort -b -k1,1n | /usr/bin/pr -TW$COLUMNS| tail -65 ... 10164 -bash 10988 /usr/bin/atop -R -w /var/log/atop/atop_20181115 600 12228 /usr/bin/python3 /usr/share/backintime/qt4/qt4systrayicon.py 3 22556 /usr/bin/konsole 38308 /usr/bin/krunner 48832 /usr/bin/kwin_x11 -session 10c2746172000153445615100000024110004_1541 100952 /usr/lib/xorg/Xorg -nolisten tcp -auth /var/run/sddm/{09ce96a3-8d39- 13527632 /usr/bin/plasmashell I've tried restarting the plasmashell and SDDM, but right after logging in, notifications not yet read pop up again, bringing the machine to its knees again. I'll be happy to provide more details if it can help.
*** This bug has been marked as a duplicate of bug 423594 ***