Skip to content

Provide easy configuration for limiting resource (mainly CPU) usage? #96

@devonestes

Description

@devonestes

Environment

  • Elixir & Erlang versions (elixir --version): 1.9.2
  • Operating system: Linux Mint 19
  • Client (editor or IDE): Vim

I installed Elixir-LS a little bit ago, and I've noticed that it is a very resource intensive program. Since I usually leave vim open while doing other things, it will chew up a lot of CPU, making my computer relatively slow.

I was able to remedy this by editing the startup script to restrict the number of schedulers so that it was never taking up too much of my machine (now 2 cores out of the 8 available with elixir --erl "+S 2:2" -e "ElixirLS.LanguageServer.CLI.main()"), but I'm betting most Elixir users won't know how to do this, and it might affect their experience.

Maybe it would be nice if there was a way to let users easily configure how much of their machine's CPU they want Elixir-LS to have access to?

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions