Closed ponty96 closed 5 years ago
Try to restart all dynos
Node is quite memory-intensive. It's normal for a single Node.js process, serving no traffic, to eat 200-400mb idly in between GC events.
During compilation, this can balloon by 100mb+ with the potential of multiple processes being spawned to transpile concurrently, and execute binaries for gzip compression, etc.
On my Macbook Pro running Node 11.6, this usually settles down to ~200mb after compilation.
Since much of that 512mb is likely already taken with the underlying OS and other libs, it's not surprising therefore that you're running into memory issues.
I'd recommend at least 1GB - and 2-4GB min in production.
I just deployed an app using this boilerplate, it works probably when I run
npm run production
on my Mac OS X but on Heroku I get this(attached image) error