Stream: general

Topic: Memory limit exceeded when pooling instances


view this post on Zulip Kai (Feb 04 2024 at 23:50):

Hi,
I'm fairly new to wasmtime (I used wasmer until recently). I noticed in my code that when I use the "pooling" Instance allocation strategy, I get an error of the following form; " wasmtime::store: ignoring memory growth failure error: Memory maximum size exceeded". Everything works fine without the pooling strategy.
The code I execute allocates 10Mb, so it really should not hit the memory limit yet. Any idea what the cause could be?

view this post on Zulip Alex Crichton (Feb 05 2024 at 14:39):

Memory is limited by default for the pooling allocator, so you're likely running into the default configuration of PoolingAllocationConfig::memory_pages. If you increase that does it work for you?

view this post on Zulip Kai (Feb 06 2024 at 20:20):

Thank you! That fixed it.


Last updated: Dec 23 2024 at 12:05 UTC