Open mikkelhegn opened 2 weeks ago
Does wasmtime serve -O pooling-allocator=n -S cli <component-filename>
work? As of recent versions of Wasmtime, the pooling allocator is used by default, and it has a memory limit of 10MB, which is too small for even minimal Python (or .NET) apps. The memory limit can't be overridden from the CLI, unfortunately, so the only way to avoid it is to disable the pooling allocator entirely.
I think the solution would be to open a PR on Wasmtime that:
I can confirm that works.
https://github.com/bytecodealliance/wasmtime/pull/8849 should address this, although we'll probably need to wait until Wasmtime 23 for it to land in a release.
Trying to run the http example using wasmtime 21.0.1, I get the following error:
On my setup, using wasmtime-cli 18.0.0 it works as documented.