You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can confirm this, if no one else wants to. The same thing happens on my system, it's a memory leak that people using Mint have been LONG aware of. There's a workaround currently, but it's only temporary.
cinnamon --replace does the job for about an hour.
Reacted by MegaV0lt, LightningStalker, cmrdt, HwapX, Mohamed Atef, Leonardo Da Vinci, tilgwullfi, aggregate1166877, Simpler1, Erkan Başar and 2 more
It's not only cinnamon itself, but also cinnamon-screensaver. When cinnamon gets above 3GB, cinnamon-screensaver is around 1GB, and it starts becoming a real issue. The system becomes noticeably slower as memory starts paging to the hard disk.
I see memory consumption increasing, too. When I start any program, cinnamon process takes a piece of memory. And when I close that progam, cinnamon process memory value isn't back. Actually, it decreases, but not to the value it was before starting program.
Just want to notice that i have not this problem in debian. After 2 hours, cinnamon is still below 300mo of memory usage. Maybe it's about my environment, or the problem is specific to mint ?
People, could you please help to confirm if resizing a terminal running while [ 1 ]; do date +%H:%M:%S; cat /proc/$(pidof cinnamon)/status | grep -i rss; sleep 1; clear; done gives you a clean repro?
Thanks for trying to reproduce this, it's something that seems to haunt me as well. I tried your suggestion for a bit more than a minute, here is a plot of the vmRSS value:
vmRSS seems to drop back to the initial value range at times.
I have not run into this issue in over a year. I suspect one of my issues was related to running Cinnamon on Fedora 27 and having ksensors running, my other encounters were all on Mint 18. I have not encountered this on Mint 19.
To be fair, I just upgraded to Mint 19 this week and struggled with it on Mint 18. I don't have enough data points to say that it has bogged me on Mint 19. Will keep an eye on it though.
@devreal yeah your plot looks like a healthy environment where the GC does its job.
The applets may be leaking native resources. js doesn't have finalizers like .NET or jvm that notifiy the objects about destruction.
In my first run (valgrind-profiled), resize/move window cause very significant leak probably because the workspace switcher redraws window shapes all the time.
As yatli proposed, I ran while [ 1 ]; do date +%H:%M:%S; cat /proc/$(pidof cinnamon)/status | grep -i rss; sleep 1; clear; done
after a session restart (lightdm manager), no other app running than the terminal (terminator) and got VmRSS and RssAnon to increase even if terminal is not moved/resized (RssFile/RssShmem seem to be stable).
Devuan/beowulf, Cinnamon 3.8.8
I also have a memory problem, but "cat /proc/meminfo" shows SUnreclaim slowly going up (eventually to 24 GB!). This happens with both Cinnamon and MATE on different machines (but slower on MATE).
I am using a Ryzen 3600 and an AMD RX460 GPU with the open source drivers. Has anyone else encountered this?
I've also encountered this issue these days, on a new machine freshly installed with Mint 20.2. I have to restart cinnamon about once a week as its memory consumption climbs up to 1G – and finally the desktop freezes, with only the mouse moving (see: #8861). Performing a cinnamon --restart from within the running DE definitely leads to this freeze – and after that, only a kill of X solves the freeze (with the session being lost and all apps killed along), similarly for Alt-F2 "r" (which freezes with the message "Cinnamon restarting") – the only real solution is running pkill -HUP -f "cinnamon --replace" from a separate session (e.g. Ctrl-Alt-F1 or remotely via SSH).
Now the interesting thing: in the last few weeks, I had to do that daily. Until a few days ago, now I'm probably back at weekly. What was the difference? In the given interval I had a lot of tasks requiring me to frequently switching workspaces (e.g. opening links from Workspace-2 which ended up in a browser on Workspace-1). Grouped-Window-list is set to include apps from all workspaces. These two seem closely related. What also makes me think so is the log put out from cinnamon --replace (which I had to start again from a terminal in my X session as it didn't restart after the HUP). A very frequent message there is:
(cinnamon:703221): Cjs-CRITICAL **: 22:47:36.861: JS ERROR: TypeError: metaWorkspace.index is not a function
windowRemoved@/usr/share/cinnamon/applets/grouped-window-list@cinnamon.org/appList.js:353:31
AppList/<@/usr/share/cinnamon/applets/grouped-window-list@cinnamon.org/appList.js:57:81
(in fact that is the only message shown there, but pretty often).
Hope these details give a clue and help solving the issue (or at least mitigating it). I didn't have it that hard on my old machine (there »Alt-F2 "r"« once per month sufficed, and often was not needed as a kernel update required a reboot). So Justin Case:
Thanks, yes – but that should be a last resort (and I'm somehow afraid that in my case, that would just lead to more freezes, see linked issue). Ideally, those memory leaks should be found and closed. If the need to restart can be reduced to about once per month or higher, the problem would be mitigated as kernel updates would require a reboot anyhow 😉
just had to restart cinnamon on my son's session as it was using about 1.5Gb and making minecraft unusable for him. he has made no config changes or applets beyond default config, debian testing system with cinnamon 5.0.6-1, and lightdm is the DM. multi-seat system, I am running old-school fvwm2 on seat0. system has been up 14 days since last reboot, and he was having trouble already 5 days ago. will keep an eye on it and try to gather useful information before restarting next time.
I meanwhile have an icon on my smartphone's homescreen, which I tap about every week or two (whenever the DE gets sluggish, and I see Cinnamon approaching 1 GB resident memory). Connects to my PC, and runs a little shell script that kills and restarts Cinnamon 🤷♂️
I came to the cinnamon issue queue hoping to find a solution to the memory leak, only to find this issue open since 2017 and people saying that it'd been a known behavior from years before 2017. In fact, this issue is so well known that the workaround (restarting cinnamon) is institutionalied in "Restart Cinnamon when it uses too much memory" in the System Settings / General.
Basically, opening System Monitor one can see the RSS for cinnamon climbing rather rapidly. This is memory consumption not only in the cinnamon process but in the kernel.
Activity
kyleguarco commentedon Aug 29, 2017
I can confirm this, if no one else wants to. The same thing happens on my system, it's a memory leak that people using Mint have been LONG aware of. There's a workaround currently, but it's only temporary.
cinnamon --replacedoes the job for about an hour.MegaV0lt commentedon Aug 30, 2017
I think most people do not see the memorywaste. I also hve seen it only because conky was showing it.
PS: I also had crashes in cinamon, but do not know if is connected to the memoryusage
LightningStalker commentedon Sep 1, 2017
It's not only
cinnamonitself, but alsocinnamon-screensaver. Whencinnamongets above 3GB,cinnamon-screensaveris around 1GB, and it starts becoming a real issue. The system becomes noticeably slower as memory starts paging to the hard disk.SerafDosSantos commentedon Sep 1, 2017
Please pay attention to those applets, they're often the culprits. I removed most of them and didn't get any problems afterwards.
LightningStalker commentedon Sep 2, 2017
Don't be so quick to blame those applets. I'm not running any.
magnetx commentedon Sep 3, 2017
I see memory consumption increasing, too. When I start any program, cinnamon process takes a piece of memory. And when I close that progam, cinnamon process memory value isn't back. Actually, it decreases, but not to the value it was before starting program.
theraser commentedon Sep 21, 2017
This issue seems to be a duplicate of #3796, right? Maybe we could move the discussion the other issue :)
brownsr commentedon Oct 11, 2017
I pushed a memory leak fix recently 5cdf5c0
LightningStalker commentedon Oct 12, 2017
That would be great if it fixes this. Even if it just slows down the leak.
cmrdt commentedon Nov 5, 2017
as an alternative to
cinnamon --replacethere's also the GUI option (inside "panel > context-menu > troubleshooting >restart-cinnamon")leigh123linux commentedon Nov 5, 2017
@cmrdt
There's also a key combo
Ctrl+Alt+Esc
LightningStalker commentedon Nov 5, 2017
@cmrdt @leigh123linux Or Alt+F2, r
Unfortunately, restarting a desktop manager has the annoying side effect of moving all the open program tabs around.
abdouskamel commentedon Nov 5, 2017
Just want to notice that i have not this problem in debian. After 2 hours, cinnamon is still below 300mo of memory usage. Maybe it's about my environment, or the problem is specific to mint ?
LightningStalker commentedon Nov 5, 2017
@abdouskamel it grows to around 900Mb by 24h on my system.
abdouskamel commentedon Nov 6, 2017
@LightningStalker Are you in debian ? For myself, memory usage is the same when booting and after hours of working.
190 remaining items
yatli commentedon Apr 2, 2020
People, could you please help to confirm if resizing a terminal running
while [ 1 ]; do date +%H:%M:%S; cat /proc/$(pidof cinnamon)/status | grep -i rss; sleep 1; clear; donegives you a clean repro?devreal commentedon Apr 2, 2020
Thanks for trying to reproduce this, it's something that seems to haunt me as well. I tried your suggestion for a bit more than a minute, here is a plot of the vmRSS value:
vmRSS seems to drop back to the initial value range at times.
rtaft commentedon Apr 2, 2020
I have not run into this issue in over a year. I suspect one of my issues was related to running Cinnamon on Fedora 27 and having ksensors running, my other encounters were all on Mint 18. I have not encountered this on Mint 19.
devreal commentedon Apr 2, 2020
To be fair, I just upgraded to Mint 19 this week and struggled with it on Mint 18. I don't have enough data points to say that it has bogged me on Mint 19. Will keep an eye on it though.
yatli commentedon Apr 2, 2020
@devreal yeah your plot looks like a healthy environment where the GC does its job.
The applets may be leaking native resources. js doesn't have finalizers like .NET or jvm that notifiy the objects about destruction.
In my first run (valgrind-profiled), resize/move window cause very significant leak probably because the workspace switcher redraws window shapes all the time.
fanfan70 commentedon Apr 30, 2020
As yatli proposed, I ran
while [ 1 ]; do date +%H:%M:%S; cat /proc/$(pidof cinnamon)/status | grep -i rss; sleep 1; clear; doneafter a session restart (lightdm manager), no other app running than the terminal (terminator) and got VmRSS and RssAnon to increase even if terminal is not moved/resized (RssFile/RssShmem seem to be stable).
Devuan/beowulf, Cinnamon 3.8.8
hamishmb commentedon Sep 15, 2020
I also have a memory problem, but "cat /proc/meminfo" shows SUnreclaim slowly going up (eventually to 24 GB!). This happens with both Cinnamon and MATE on different machines (but slower on MATE).
I am using a Ryzen 3600 and an AMD RX460 GPU with the open source drivers. Has anyone else encountered this?
IzzySoft commentedon Jan 7, 2022
I've also encountered this issue these days, on a new machine freshly installed with Mint 20.2. I have to restart cinnamon about once a week as its memory consumption climbs up to 1G – and finally the desktop freezes, with only the mouse moving (see: #8861). Performing a
cinnamon --restartfrom within the running DE definitely leads to this freeze – and after that, only a kill of X solves the freeze (with the session being lost and all apps killed along), similarly for Alt-F2 "r" (which freezes with the message "Cinnamon restarting") – the only real solution is runningpkill -HUP -f "cinnamon --replace"from a separate session (e.g. Ctrl-Alt-F1 or remotely via SSH).Now the interesting thing: in the last few weeks, I had to do that daily. Until a few days ago, now I'm probably back at weekly. What was the difference? In the given interval I had a lot of tasks requiring me to frequently switching workspaces (e.g. opening links from Workspace-2 which ended up in a browser on Workspace-1). Grouped-Window-list is set to include apps from all workspaces. These two seem closely related. What also makes me think so is the log put out from
cinnamon --replace(which I had to start again from a terminal in my X session as it didn't restart after the HUP). A very frequent message there is:(in fact that is the only message shown there, but pretty often).
Hope these details give a clue and help solving the issue (or at least mitigating it). I didn't have it that hard on my old machine (there »Alt-F2 "r"« once per month sufficed, and often was not needed as a kernel update required a reboot). So Justin Case:
NikoKrause commentedon Jan 8, 2022
There's an option now "Restart Cinnamon if it uses too much RAM"
It's to be found in:
IzzySoft commentedon Jan 8, 2022
Thanks, yes – but that should be a last resort (and I'm somehow afraid that in my case, that would just lead to more freezes, see linked issue). Ideally, those memory leaks should be found and closed. If the need to restart can be reduced to about once per month or higher, the problem would be mitigated as kernel updates would require a reboot anyhow 😉
gklanderman commentedon Jan 14, 2022
just had to restart cinnamon on my son's session as it was using about 1.5Gb and making minecraft unusable for him. he has made no config changes or applets beyond default config, debian testing system with cinnamon 5.0.6-1, and lightdm is the DM. multi-seat system, I am running old-school fvwm2 on seat0. system has been up 14 days since last reboot, and he was having trouble already 5 days ago. will keep an eye on it and try to gather useful information before restarting next time.
mas1701 commentedon Apr 23, 2026
I noted the memory leak as well, from 21.3 trough to 22.3. I found that the problem increases massively when using a desktop background slideshow.
IzzySoft commentedon Apr 23, 2026
I meanwhile have an icon on my smartphone's homescreen, which I tap about every week or two (whenever the DE gets sluggish, and I see Cinnamon approaching 1 GB resident memory). Connects to my PC, and runs a little shell script that kills and restarts Cinnamon 🤷♂️
robogeek commentedon Sep 17, 2026
I came to the cinnamon issue queue hoping to find a solution to the memory leak, only to find this issue open since 2017 and people saying that it'd been a known behavior from years before 2017. In fact, this issue is so well known that the workaround (restarting cinnamon) is institutionalied in "Restart Cinnamon when it uses too much memory" in the System Settings / General.
I wrote up some details in this comment:
#13015 (comment)
Basically, opening System Monitor one can see the RSS for cinnamon climbing rather rapidly. This is memory consumption not only in the cinnamon process but in the kernel.
berwynhoyt commentedon Oct 21, 2026
One major cause found: #13956 (panel menus never release destroyed items); fix in PR #13958.