Skip to content

request for a cli flag to the analysis server to moderate memory usage #59960

Open
@devoncarew

Description

Hi! As discussed w/ @scheglov and @bwilkerson previously:

We'd like a command-line flag for the analysis server to moderate its memory use. The intended use of it would be for the dartpad backend. Its running in a container environment; some useful details:

  • we have a fixed size of the memory for the container; less memory usage means we could run more instances of the analysis server. this would help with scaling the backend
  • the file system is ram based, so any writes to disk take up memory (this is relevant in the context of the summary / byte store)

The flag might do something like disable the byte store (currently set to max of 1GB I believe?) and reduce or eliminate the summary memory cache? But generally, it would be useful to have a lower memory mode (and no disk cache mode) for use by dartpad.

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work onanalyzer-serverarea-analyzerUse area-analyzer for Dart analyzer issues, including the analysis server and code completion.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions