wasmerio / wasmer

🚀 The leading Wasm Runtime supporting WASIX, WASI and Emscripten
https://wasmer.io
MIT License
18.54k stars 793 forks source link

Limit number of cached stacks #4197

Open Arshia001 opened 1 year ago

Arshia001 commented 1 year ago

The code in on_wasm_stack allocates as many stacks as requests come in. We need to implement a configurable upper bound for the number of stacks that can exist, since they are never destroyed and can end up consuming lots of memory if spikes in number of requests happen.

stale[bot] commented 3 weeks ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.