Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
10
rated 0 times [  10] [ 0]  / answers: 1 / hits: 4453  / 1 Year ago, wed, january 18, 2023, 1:48:55

I am using Ubuntu 20.04 (Linux 5.8.0-48-generic #54~20.04.1-Ubuntu) and today I find that gnome-shell is using LOTS OF RAM


        USER      PR  NI    VIRT    RES    SHR    %CPU  %MEM     TIME+ COMMAND                                    
2365 gdm 20 0 14.7g 11.0g 10.8g S 0.0 35.1 143:54.82 gnome-shell
76510 youran 20 0 8937064 3.2g 3.0g S 0.0 10.2 123:57.14 gnome-shell

This server has 32GB of RAM but 21GB is used even there is no workload.


            total        used        free      shared  buff/cache   available
Mem: 31Gi 21Gi 2.5Gi 1.8Gi 6.7Gi 7.1Gi

Notice that this server has been up for 123 days,


$ uptime
13:08:18 up 123 days, 22:54, 4 users, load average: 0.79, 1.19, 1.00

so I think there is some memory leak. I know a fresh restart can solve this problem. However, I want to know why, because Linux user should not always restart their computer. My gnome version is


$ gnome-shell --version
GNOME Shell 3.36.7

Related Questions:



More From » 20.04

 Answers
4

Memory leaks are a known problem (bug) of gnome-shell.


Three workarounds...



  1. Use Wayland instead of X11/xorg. (Change on your login screen).



  2. In X11/xorg, restart gnome-shell with ALT+F2, then "r", then ENTER.



  3. Update to a newer version of Ubuntu.




[#1030] Thursday, January 19, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
antorchestr

Total Points: 92
Total Questions: 111
Total Answers: 120

Location: Jordan
Member since Wed, Jun 17, 2020
4 Years ago
;