Reputation: 1992
How do I limit processor core count usage in an elixir application?
I know I can use +S
command in erlang, but I'm not sure how to use that command from elixir realm.
Upvotes: 1
Views: 702
Reputation: 84150
For iex you can do:
iex --erl "+S 1" -S mix some_task
For running elixir you can do:
elixir --erl "+S 1" -S mix some_task
Upvotes: 5