How to debug memory leaks?

Hi, how do we debug memory leaks for Javascript out of memory errors on our Meteor server hosted on Galaxy?

Any advice appreciated.

The Galaxy guide goes over this a bit

You can use this package to save memory heap dumps to s3 to figure out exactly what is taking up memory