kkostov / wasmer-leak

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wasmer Leak

This is a demo example of wasmer-go to reproduce a possible memory leak.

  1. First build the container using docker-compose build
  2. Start e.g. docker stats to track the memory usage
  3. Start the container using docker-compose --compatibility up
  4. 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.

About


Languages

Language:Go 49.6%Language:Rust 40.9%Language:Dockerfile 6.1%Language:Makefile 3.5%