Skip to content

Frequent OOMs in rust-analyzer #20634

@Teapot4195

Description

@Teapot4195

I have the default vscode settings for rust-analyzer generated using a x.py setup for compiler development. Recently, rust-analyzer starts to frequently hang and then OOM itself.

This didn't happen in the past(~Jan 2025), I did observe high memory usage, but it has never hung and also exhausted all system memory. Looking at memory usage in htop shows rust-analyzer using upwards of 27GB of memory (including swap), which doesn't seem normal.

Of note is that this only happens when the project is opened, not after making code changes.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions