View Full Version : [UbuntuGnome] Gnome-shell memory usage increases over time after upgrading to 18.10

November 1st, 2018, 12:23 PM
So memory leak fixes were part of the 18.10 (https://www.omgubuntu.co.uk/2018/03/gnome-shell-memory-leak-is-being-fixed) release, but in my case, gnome-shell memory usage seems to have worsened significantly instead after upgrading.

I upgraded to 18.10 from 18.04 via Software Updater (and had previously done the same from 17.10 to 18.04). Since the upgrade, gnome-shell memory usage keeps increasing over time. After ~2 days, gnome-shell appears to use up to 20% of memory (16GB total) and the desktop becomes very unresponsive and pretty much unusable.

Before the upgrade, I could go with months of uptime without this happening, so through some twist I seem to be experiencing the exact opposite of intended effects of the gnome-shell memory leak fixes.

Logging out of Gnome and then logging back in brings gnome-shell memory back down (obviously).

Does anyone have any ideas, and or thoughts about troubleshooting this? Could it be an issue of leftover configs or something from 18.04?

uname -r : 4.18.0-10-generic
gnome-shell --version : GNOME Shell 3.30.1

November 3rd, 2018, 01:42 PM
It could be just another problem with upgrading rather than doing a clean install. I have been using ?buntu for 12 years now and I learned a long time ago that upgrading the system usually takes way longer than doing a clean install. I only use the LTS releases and always do clean installs.

November 27th, 2018, 09:58 PM
Bump, as I've discovered I'm not the only one with this problem. Another user has posted about this on Reddit (https://www.reddit.com/r/Ubuntu/comments/9tw6cf/1810_gnomeshell_excessive_ram_usage/). The user continued to experience the issue even after a full reinstall, so it is not an artifact of upgrading from 18.04.

The issue may be related to Nvidia cards--that seems to be one common item between myself and the Reddit user.

Would be great if anyone could provide even some pointers as to how to troubleshoot this, or a link to someplace that does.

May 3rd, 2019, 08:42 PM
I threw my nvidia card away and now using the integrated intel graphic card. The performance is the same, but the memory leak is much smaller (but significant).

May 7th, 2019, 08:26 AM
Why don't you tell us what is using the Memory? Use top or htop, & post the results back here.

May 7th, 2019, 08:49 AM
gnome-shell uses the memory. Just one minute ago I had to reset gnome-shell (Alt-F2 r) because it used ~500MB of RAM and it was sluggish. Now it uses ~190MB, and it slowly growing.

May 7th, 2019, 09:00 AM
5 minutes, and the memory usage increased to 220MB.


May 16th, 2019, 12:33 PM
Hi guys, I'm new to ubuntu. Shortly after i got ubuntu up and running on this laptop about 6 weeks ago i started researching grub config because my purple screen would just hang there for 30 seconds no matter what changes i made to grub.

Anyway, i came across 2 articles that specifically stated that gnome shell does have a memory leak and that at the moment, a solution had not been found. For the life of me i can't remember on what websites these articles were on but they were adamant about the memory leak because the problems that were being described are the same as the ones your describing now. I am experiencing the same thing myself, after about an hour of using ubuntu my laptop responds a lot more slower....and slower.

Not sure what the solution is but if you guys can think of one I'm all ears as i am new.