Rust Analyzer using 13 Gib

So I am using rust analyzer with a pretty large project in a cargo workspace - the project in question has around 830 deps - and noticed that rust analyzer is using nearly 13 gb:


Is there any way to diagnose why it is using so much memory or is that just how it is with projects of that size?

1 Like

Here is the project if anyone is interested: GitHub - utahrobotics/utah-lunabotics-2026

Currently, there is no complete way to diagnose memory overuse problems (there used to be a command "rust-analyzer: Memory usage (clears database)", it's still there but it doesn't do anything. You can run rust-analyzer-binary analysis-stats your-project-dir and it will (among others) report memory stats, but it does not exactly resembles IDE usage scenario).

However, I believe 13gb is quite typical for a workspace that big.

2 Likes

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.