简体   繁体   中英

nodejs Out Of Memory only when running under forever, mon, upstart etc

I have a node program I've tested tons of times doing nohup command & and it never runs into any memory problems as long as I pass node the --max_old_space_size=12000 as my process can use up to several GBs.

Now, I've tried running the exact same command with forever, mon, and upstart and the process will always fail with "FATAL ERROR: CodeRange::GetNextAllocationBlock Allocation failed - process out of memory"

Any ideas why this might be happening? I haven't been able to check the memory usage right before it fails, but it looks like it fails when it reaches only about 3gb of memory.

Are you running via any start up script using forever ? If so just , find a way to add a the line Max old space..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM