Skip to content

Instantly share code, notes, and snippets.

@blackode
Last active December 9, 2020 19:46
Show Gist options
  • Save blackode/64d855fc910193b31fe44d466d9ea57b to your computer and use it in GitHub Desktop.
Save blackode/64d855fc910193b31fe44d466d9ea57b to your computer and use it in GitHub Desktop.
Maximum Processes Limit
for _ <- 0..1_000_000 do
p_count = Process.list() |> Enum.count()
IO.puts "Creating Process: #{p_count}"
spawn(Process, :sleep, [:infinity])
rescue
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment