-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Memory hogger on Mac M1 #77
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
Comments
Would you describe what you are doing after starting the application? Anything particular like opening a rust project or something along the line? |
I was playing around, opened a small rust project and typing some code realized some lag and frame drops. When analysed using Activity Monitor saw it was consuming more than 5gb of Ram. |
One thing i noticed is if you installed rust plugin, then rust analyzer takes huge memory rust-lang/rust-analyzer#5728 rust-lang/rust-analyzer#1252 rust-lang/rust-analyzer#9470 rust-lang/rust-analyzer#11325 while indexing but after that memory usage get better |
I'm also getting very high memory usage on Windows when typing (without rust analyzer). I can consistently reproduce this by opening a file and holding down a key on the keyboard to fill up the editor. Once a line is full, move to the next line and keep entering text. After a few lines, the memory usage will suddenly start to increase significantly and keep increasing linearly as the editor fills. Interestingly, the memory only increases while the text fits on the screen - if it starts scrolling horizontally then it stops increasing, but starts again when I move to the next line. |
Looks like typing consumes an extreme amount of memory (just holding down "s" for a few seconds got me ~100MB extra), but deleting the added text frees up everything. |
I get similar behavior on a first generation Mac M1 with 16G ram. I created a folder with a single file in it, Lapce takes 1.45G. I add the line |
I am on |
Memory now should slowly raise based on the actual usage (typing, etc.) |
I also have about 300-400M memory usage after installing rust code analyzer. However I think this is still much larger than others, for example visual studio code. The bad thing is when you open a second window, memory requirement doubles, which is very strange to me because it is still a rust project, why consuming double memory? Thanks, Jianshu |
Starting RA server consume tons of memory, they are still there even I force quit VSCode. The memory usage is crazy. I did not have the same issue on another small project, current opened project has many crate dependencies, is it because there are so many crates used and they are pre-indexing so they consume so much ram? Is there an option to lazily index the necessary crate only if I need it? |
This application very fast starts cosuming a large chunk of RAM, attaching screenshot
System Specification
Macbook Air (M1 2020)
Chip Apple M1
Memory 16 GB
Screenshot

The text was updated successfully, but these errors were encountered: