I recently went from manjaro stable to testing which included an upgrade to xfce4 4.20 and since then xfwm4 is eating a lot of RAM.
I have rebooted several times and also tried disabling the compositor but that’s not it.
Currently its sitting at 21GB.
It is either saved in your sessions cache or you have it set up to do so in your autostart applications. Usually “xfwm4 --replace” is run to take over window management from another window manager (not sure if you’ve been testing other window managers).
The fix is to first, see if there is an xfwm4 entry at Settings Manager > Session and Startup > Application Autostart. If so disable/delete it. Secondly, clear your sessions cache. The best way to do this is to delete the contents of ~/.cache/sessions while not logged in. So, from another virtual terminal (VT1, 2, 3, etc.).
I was wondering about the replace-option of “xfwm4 --replace” myself but i don’t have anything in autostart, so that seems how it is started for some reason.
Option --replace suggests that xfwm4 is replacing another window manager
Option would be needed to run xfwm4 on another DE (e.g. replacing sddm on Manjaro KDE)
But not needed if xfwm4 is default window manager
$ xfconf-query -c xfce4-session -p /sessions/Failsafe/Client0_Command
Value is an array with 1 items:
xfwm4