My xfce desktop environment is consuming a lot of RAM and I don't know why

You could run:

sudo ps_mem

and see if it will give any clue as to what is taking up RAM space on your system.

Also perhaps check man free and:

https://www.linuxatemyram.com/

4 Likes