Hey all. I'm using NodeJS for a production API and have a few questions about "best practices" when it comes to memory settings.I'm using pm2 as a process manager and have "max_memory_restart" set to 3GB. This was needed to avoid out-of-memory exceptions during a particularly intensive cron job. (We're working on making this cron job less intensive)We set max_old_space_size to 4096 (aka 4.9gb) to avoid the out-of-memory exceptions mentioned above.This has fixed our issues with the cron job but our API will periodically go down for no reason at all. Are these settings to high?
Submitted November 22, 2017 at 10:09PM by mrc1897
No comments:
Post a Comment