ardhitama
ardhitama

Reputation: 1992

Limiting Processor Core Count Usage

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

Answers (1)

Gazler
Gazler

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

Related Questions