I haven't put it to the test, but it looks like it could be very useful for controlling the memory usage of your game.
Memchaser
Develop games in your browser. Powerful, performant & highly capable.