This is a demo example of wasmer-go to reproduce a possible memory leak.
- First build the container using
docker-compose build
- Start e.g.
docker stats
to track the memory usage - Start the container using
docker-compose --compatibility up
- The memory will quickly ramp up, notice that we set a memory limit of 200MB in the docker-compose file. It runs a single wasm function in an eternal loop.