Hi all,
I have a feature request or idea. It would be nice to have an option to disable sourceMapCache in order to minimize the servers RAM usage when in production.
Since RAM prices are rising, hosting is also becoming more expensive. Hetzner just raised their prices (cf. https://docs.hetzner.com/general/infrastructure-and-availability/price-adjustment/) and also scalingo is taking subtle measures that ultimately lead to higher costs for hosting the same apps or development environments (like no more free starter containers, upcoming disabling of caching etc).
I spent some time optimizing my meteor 3.5 app, and noticed that, looking at heap snapshots, the sourceMapCache ate up almost 100 MB of heap. I implemented a hacky deployment script that factors this out, and the results in saving baseline memory consumption are quite remarkable in meteor 3.5: Disabling server source maps reduced heap usage from 408 MB to 190 MB (−53.4%), RSS by ~339 MB, and cgroup memory by ~370 MB. Now I can easily scale down a few containers that I use for staging and save quite a few bucks (however, of course, debugging now requires me to locally look up errors using app.js.map)