WORK JS HEAP OOM 89 words used 1×
JavaScript Heap Out of Memory
Your Node process keeps dying with a heap out of memory error and you are tempted to just throw more RAM at it. Paste the error, what your code does and the data volume, and it explains what the heap is, why it is running dry here, the three most likely causes for your case, and how to profile where the memory goes first.
My Node.js process is crashing with a JavaScript heap out of memory error. Error: {ERROR_MESSAGE}. What my code does: {PROCESS_DESCRIPTION}. Approximate data volume it handles: {DATA_VOLUME}.
Explain in plain English what the heap is and why it is running out here. Walk me through the three most likely causes for a process doing what mine does. Tell me how to profile where the memory is going before I just increase the heap limit, and explain whether increasing the limit is a real fix or just delaying the problem. ⚠ human-in-the-loop: you are responsible for the results of using this prompt, not us.