How can I debug memory leak for loopback application on Heroku?

We have a rather nasty memory leak in our loopback app (node.js), but this doesn't seem to be happening locally, only on Heroku.

It constantly increases memory usage without any queries, and I ran 10,000 queries locally without seeing a similar pattern.

use of hero memory

I currently have no good ideas on how to debug this further.

+3


source to share


2 answers


It turns out that disabling New Relic fixed the issue. We had a log level to debug to figure out another issue and all of a sudden all hell broke down. They do have a notice of their documentation about this.



+3


source


I believe there is a blog post from Strongloop dealing with memory leak profiling here . It rebuilds the heap heap setup and how to use the chrome dev tools to collect client side heap snapshots using the JavaScript console built into the browser. Heap analysis can be performed in the same console.



+1


source







All Articles