I’m relatively new to RStudio (about six months in) and still learning the ropes. For the first few months, everything worked fine, but recently, I’ve noticed an issue. Whenever I open RStudio, the memory usage indicator in the Environment pane starts as orange and eventually turns red.
I’m worried this might be because my computer isn’t powerful enough, but when I asked some computer experts, they couldn’t pinpoint the problem.
I’d really appreciate it if someone could help me understand what might be causing this and suggest possible solutions. Could it be related to the amount of data I’m working with, or perhaps a configuration issue in RStudio?because as i told i am new to Rstudio and i do not have a big data or too many packages.
I just opened RStudio (on Linux Mint) and my initial session use (157MiB) is actually higher than what your image shows, but a lower percentage of what's available. This is without running anything. So I don't think what you are seeing is out of line. It could be your machine is a little tight for memory.
If you click the arrow next to the memory use figure and select "Memory Usage Report", you'll get more details, which you might share here. Maybe that will indicate a problem (or just that you are tight for memory).
Basically, your system is tight for memory. According to the usage report, your computer has about 7 GB of RAM and Windows plus any other programs running are collectively using about 5.5 GB. Your RStudio session is currently using very little.
I would not worry about this unless some of your R programs start eating enough memory to make things tight (meaning you run out of memory or frequent garbage collections slow things down too much). If you do feel restricted by lack of memory, one thing you might look at is what all programs are running in the background. If you have a bunch of browser tabs open, closing some of them might also help, since they can eat memory.