Using Version 48.0.2564.109 m.
We have a javascript web app (built with ExtJS). In Chrome, when we leave our app sitting there for a while, the GC starts going nuts. In Task Manager, you can see the CPU constantly spinning around 25%.
I took timeline snapshots and CPU profiles, and you can see the GC, about 10 times a seconds, try to collect memory, but collects 0B.
Our app is a large enterprise application and does use quite a bit of memory and updates the screen periodically.
But, there is absolutely no javascript code running during this time. So I can't see that it is something our app is actively doing
Does anyone know what could be triggering this?
It is killing performance of our app.
Also, it only happens when our tab is active. If you switch to a different tab, the CPU dies down and the GC stops.
Is there other data I need to collect to help determine this?
答案 0 :(得分:0)
您的app当前JS堆大小是多少?您可以通过收集时间线和启用内存来检查它。
看起来您的应用程序接近V8内存限制,因此V8正试图释放一些内存。如果应用程序需要使用那么多内存,您可以通过以下方式增加主机的限制: - js-flags =“ - max-old-space-size = 2048”
否则可能只是代码中的内存泄漏。使用堆探查器将其捕获。