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

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

Open
devoncarew opened this issue Jan 22, 2025 · 2 comments
Open
Labels
analyzer-server area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.

Comments

@devoncarew
Copy link
Member

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.

@devoncarew devoncarew added the area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. label Jan 22, 2025
@bwilkerson
Copy link
Member

What's the priority of this?

@devoncarew
Copy link
Member Author

What's the priority of this?

Hmm, probably modest. It's not blocking anything currently; it would be useful for us when considering any architectural refactoring for dartpad. It would slightly reduce the amount of resources the dartpad backend is using currently, and I expect would have a bigger impact w/ a more stateful backend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-server area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
Projects
None yet
Development

No branches or pull requests

2 participants