Good ... I'll be back to square one. I canโt figure it out for the life of me.
I get the following error:
FATAL ERROR: JS Allocation failed - process out of memory
I could list dozens (yes, dozens) of the things that I was trying to find at the root of this problem, but in reality it would be too much. So, here are the key points:
- I can only get it on my production server, and my application is large and complex, so it is very difficult to isolate
- This happens despite the heap size and RSS size being <200 MB, which should not be a problem considering that the machines (Amazon Cloud, CentOS, m1.large) have 8 GB RAM.
My guess is that (due to the second point) the leak is probably not the cause; rather, it looks like the SINGLE object is very large. The following thread supports this theory :: In Node.js, using JSON.stringify results in a "process out of memory" error
What I really need is to find out what state of memory is at the time of the application crash, or maybe a stack trace leading to FATAL ERROR.
Based on my assumption above, a 10 minute heap heap is insufficient (since the object will not be in memory).
Zane Claes Nov 29 2018-12-12T00: 00Z
source share