Skip to content

Editor Services memory consumption is large due to Script Analyzer #269

Closed
@rkeithhill

Description

@rkeithhill

I'm not sure if this existed previous to 0.6.2 but given the small number of changes to 0.6.2, it must have. Anyway, while working on Plaster in VSCode today I noticed that the PSES language server process was consuming ~278 MB! I created a dump file and loaded it into 2015 to analyze the managed memory. This is what I see:

pses-memory-hog

If I burrow into the PSSA helper class I see:

pses-pssa-mem-hog

Note that helper is a static, so it will never get collected and anything it has a reference to will never get collected on down the line. Looking inside it, we see that it is holding onto a lot of AST:

pses-helper-mem-hog

The DMP file is about 610 MB and I could make it available via my OneDrive account but I suspect you could recreate it pretty easily. I'm on VSCode 1.4.0, Windows 10 1607 and PSSA 1.5.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions