Node.js - JavaScript heap out of memory
eugenepro2
PROOP

a year ago

The service worked for about a week, then it stopped with this error. I don’t yet understand why this happened. How can this be avoided in the future to prevent it from happening again?

[22:0x6431d50] 658281198 ms: Scavenge 1856.5 (1939.9) -> 1851.4 (1955.9) MB, 6.2 / 0.0 ms  (average mu = 0.557, current mu = 0.602) task; 
<--- JS stacktrace --->
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

3 Replies

eugenepro2
PROOP

a year ago

f0dc3661-8fa0-4604-a9fd-046ca742b889


lucasgarcia98
HOBBY

a year ago

Sometimes you need to set an env in the project to increase the memory limit that node uses



Loading...