What does Heap Usage mean in the "Custom Metrics" window when running pm2 monit
?
The value for my server gets dangerously close to 100%.
The heap is a memory used by programming languages to store global variables. By default, all global variable are stored in heap memory space.
It`is maybe because of your programs variable.
you can reset it after it exceeded the limit or force pm2 do it for you automatically.
pm2 start api.js --max-memory-restart 300M
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With