Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heavy memory usage #16611

Closed
allsey87 opened this issue Feb 20, 2024 · 3 comments
Closed

Heavy memory usage #16611

allsey87 opened this issue Feb 20, 2024 · 3 comments
Labels
C-bug Category: bug

Comments

@allsey87
Copy link

rust-analyzer version: 0.3.1850-standalone

rustc version: 1.78.0-nightly (8ace7ea1f 2024-02-07)

relevant settings: Using linkedProjects in vscode to specify two projects, a workspace with 4 members and a standalone crate.

Rust analyzer is idle at the moment, however, it is consuming nearly 20% of system memory (24 GB + 1 GB swap), that seems... excessive :D

PID   USER      PR   NI  VIRT    RES  SHR S  %CPU %MEM  TIME+   COMMAND                                
49427 mallwri+  20   0   5468700 4.5g 236 S  0.0  19.3  3:19.57 rust-analyzer
@allsey87 allsey87 added the C-bug Category: bug label Feb 20, 2024
@flodiebold
Copy link
Member

How large are the projects? How many and how large are the dependencies (e.g. how many lines does Cargo.lock have)?

@allsey87
Copy link
Author

The Cargo.lock file for the workspace has 4600 lines, while the standalone crate outside of the workspace has 900 lines.

@flodiebold
Copy link
Member

4.5G don't seem abnormally much for two projects of that size, so I think this is a duplicate of #7330.

@flodiebold flodiebold closed this as not planned Won't fix, can't repro, duplicate, stale Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

2 participants