After having installed the lasted version of RStudio (rstudio-2025.05.0-496-amd64.deb) for Ubuntu 24, the IDE consumes more than 5 GiB upon startup. It doesn't help to garbage collect or restart the session.
After just a little bit of work with no other background processes on my Linux Mint machine, the IDE quickly consumes 13 GiB, but garbage collecting only release a few hundred MiB even though my environment just stores a few small objects. The memory report blames something labelled as 'cgroup' for the high consumption which seems to be permanent, since restarting RStudio helps nothing: after the quickly build up memory usage, the IDE now consumes 12 GiB on startup. I have the reboot my machine before the initial memory consumption is "just 5 GiB" again.
I have tried to uninstall RStudio and re-install a fresh download of the newest version for Ubuntu 24 (rstudio-2025.05.0-496-amd64.deb), but it doesn't help.
However, uninstalling and downgrading to version 2024.12.0+467 does help.
Thus, it seems to be an issue with the newest version and not my machine.
Note: I didn't try version 2024.12.1+563, since the sha256sum on the download page doesn't match that of the downloaded installation file:
I'm running Build 496 on Linux Mint 22.1 (derivative of Ubuntu 24), and it consumes nowhere near that much RAM here. I also don't see anything named 'cgroup' in the system monitor's memory profile, nor does pgrep -l cgroup turn up anything.
You might try resetting RStudio's state in case something uwanted (and vestigial?) is getting started automatically at launch.
I have the same setup, and also have cgroup taking up lots of memory, although not always as much as Rstudio says it does. Sometimes the memory usage report gives negative values for "used by system" ( eg. used by sysem = -2,672MiB /proc/meminfo). Tried resetting everything but no change.
Uninstalling build 496 and downgrading to build 467 solved the memory issue without any resetting of the RStudio state.
If I then upgrade to build 496 once again and try resetting the RStudio state by renaming/deleting both of
~/.local/share/rstudio
and
~/.config/rstudio
then I get the same memory issue as before.
I have been using RStudio with Linux Mint for a decade, but I have never encountered such issues before.
It's an okay solution to use build 467.
Hopefully, the next build will not cause any memory issues.
I just wanted to let the developers know that there could be a memory issue with the newest build (I don't know if my troubleshooting is enough to conclude that, but I think it points in that direction).
The differences in our experiences (apparently both on Linux Mint) beg for an explanation. I wonder if the cause might be your loading a package that I am not. According to the RStudio packages tab, at start I'm loading rlang and shiny (not sure why) from the user library and base, datasets, graphics, grDevices, methods, stats and utils from the user library.