My memory looks like this!
I found the culprit. For whatever dumb ****** reason, Firefox was causing Plasma Shell, itself, and two other programs to eat up more and more memory until it hit swap for whatever reason. I switched browsers to Vivaldi and my memory usage is completely normal now. Iām glad that thatās solved and over with, but itās a real shame that I have to stop using Firefox, as I really liked it .
Firefox, at present, opens a new process for each tab that you open, therefore more memory gets used. I think Chromium does the same thing, Iām not sure. What is the CPU of the computer you are using? I had similar problems using KDE on Manjaro but switching to XFCE made things a whole lot better. I had 8GB of memory on the system but the CPU just dināt handle KDE very well. It was an old Core 2 Duo. Running KDE on a newer Core i5 solved the issue. Firefox is OK now.
Firefox froze my entire system this evening and I had to switch to tty and kill it . I was only deleting history
You can limit the number of processes Firefox uses by setting dom.ipc.ProcessCount
in about:config.
However Iām not sure how this affects memory usage.
I run Firefox exclusively on all my desktops and never run across an issue with it.
Me neither. Could be a plugin maybe?
I have a 2700x. And itās not that itās opening a new process for every tab that Iām talking about, because I know that, but itās the fact that it continues to use more and more memory despite me not using it 24/7.
Also, Plasma Shell is starting to creep up with memory again. Ugh. Granted, itās not creeping up as much, but itās still getting larger and larger. Even a fresh install couldnāt fix this issue.
The Plasma Integration add-on gave me some headache a while ago. The CPU was running at max and everything jammed. Disabling it solved the issue. I havenāt tried it since then.
Have you tried starting with a new Firefox profile, esp. without any extensions? Same goes for plasma, growing memory usually points to a misbehaving widget.
Yeah, disable Firefox plugins and perhaps some of the Plasma stuff too. I canāt tell you what about the Plasma stuff because it comes down to what you have installed.
Removing the plasma add-on was one of the first things I tried.
Think it does boil down to widgets, though. I removed some and now itās decreasing. Thanks for the suggestion!
Some widgets are great and others seem really dodgy sometimes. Iāve had mixed luck with them. Some of them are old leftovers from KDE4 and donāt play so nicely. Hope things get better!
Thank you! Itās a shame though, the stock resource monitoring widget was convenient to have. Oh well!
Yeah, a few things have become lost along the way. As you say: āOh well!ā. Iām sure we can find other resources.
I thoroughly thought it worked for a couple of minutes, but then I saw it didnāt. Darn. It still gradually rises up in memory usage, but itās wayyy slower now. However, programs do not free up memory.
Iām at wits end right now. I have tried so many things, and alot of things people have suggested. My system seems to never free up memory, which causes my memory usage to gradually crawl up. For example, if I get a desktop notification, my Plasma Shell will jump up in usage by 3-10MiB in usage, or if I tab into Discord and use it for a little bit, itāll jump up by 20-30MiB. This wouldnāt be a problem, except it NEVER goes down. Within 3-4 days, my idle memory use will be >50%, excluding disk cache.
This is an issue, because I frequently play games and use virtual machines on my computer, which causes memory to overflow to Swap and bog down my compter. Iāll list things I have tried to fix this, italicizing solutions that have slightly helped, and bolding ones that have helped a little more.
- Removing the plasma integration addon
- Reinstalling EndeavourOS
- Changing browsers from Firefox
- Removing resource management widgets
- Switching system fonts and themes.
- Shutting down, then rebooting my PC.
Iāll also list some other symptoms my PC has been having. I will bold ones that are more severe in nature.
- Booting from a liveUSB freezes my entire PC within a couple of minutes, regardless if it a EndevOS usb or a debian based one.
- Like I mentioned, memory usage only goes up and never goes down. This means that just by opening some programs, then letting my PC idle for a while increases memory usage. The furthest I have let it go up to was 5.5GiB idle.
- Text in widgets either distort or disappear. Iām not too good at describing things, so Iāll just give an example:
For example:
Normal text: Write 0KiB/s
Distorted text: Wrā¦0KiB/s
Text that has disappeared: 0KiB/s
- Using heaptrack, my computer is making a ginormous amount of allocations and temporary calls.
- Valgrind reports a tiny amount of leaked memory.
System specs:
RX 5700 XT
Ryzen 2700X
16GB of RAM
This is extremely frustrating for me.
Probably not Firefox itself at fault:
You are correct, I just updated the thread.
This could well be a memory leak in a driver.
This would provide a good point for diagnosis if you can reliably replicate the issue. This means you can try swapping out hardware to try and narrow it down.