DarkMarmot / elixir_sandbox

An Elixir Lua Sandbox built on top of Robert Virding's Luerl
Apache License 2.0
28 stars 5 forks source link

Memory usage limit? #1

Open al6x opened 4 years ago

al6x commented 4 years ago

Hi Scott, I watched your ElixirConf talk about the Sandbox. Can you please clarify - if there's a way to limit the memory usage?

DarkMarmot commented 4 years ago

Sorry I completely missed this! (months late). You can monitor memory usage in terms of tracking the size of the vm state (since you're passing it around -- it represents the full memory allocation).