Chrome tab memory keeps growing, heap size stays the same

后端 未结 1 680
暗喜
暗喜 2021-01-04 05:06

I\'m working with a team on a single page application with quite a few timers, and about 10 REST API calls per second. We\'ve used the Chrome memory profiling tools to loca

相关标签:
1条回答
  • 2021-01-04 05:38

    This is probably too old and not relevant anymore, but for everyone else who experienced this: it's probably because of the opened dev tools. I had an application that would accumulate memory over time with the heap size staying the same, but when I closed the dev tools the memory went way down and didn't get back up like it did when dev tools was open. When profiling long term memory footprint, use chrome task manager first.

    I can guess that in your case it happens because devtools has to store all those REST API calls (to show them in Network tab) and I'm not sure if chrome saves them to disk temporarily to save memory.

    0 讨论(0)
提交回复
热议问题