简体   繁体   中英

Memory Leaks in NODEJS With Chrome-DevTools - Get variables that are causing memory leaks and App to crush?

We're experiencing crushes with our NODEJS app, for some reason we have somewhere in the code some variables that are not getting released, and they should be.

For that we've decided using Chrome DevTools and take snapshots.

However I can't seem to find the source for the memory that's not getting released in seconds 6, 12 and 14, here in the red circles:

在此处输入图像描述

Any idea how can we find the root cause for the blue lines?

It seems that the memory is actually being released since the memory use goes down after a brief spike. It looks to me that this is more like a high instant need for memory then a memory leak. Try to correlate this with the logs and see what was happening at that time. From the picture you posted you seem to have a lot of strings and arrays in memory.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM