You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "haolang (via GitHub)" <gi...@apache.org> on 2023/05/31 02:45:06 UTC

[GitHub] [echarts] haolang opened a new issue, #18686: [Bug] echarts 使用百度地图组件更新option,total js heap size一直增长,造成内存泄漏

haolang opened a new issue, #18686:
URL: https://github.com/apache/echarts/issues/18686

   ### Version
   
   5.4.2
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/zh/editor.html?c=heatmap-bmap
   
   ### Steps to Reproduce
   
   https://echarts.apache.org/examples/zh/editor.html?c=heatmap-bmap
   可在官方百度地图热力图示例中重现,不断开关主题设置按钮(深色模式)total js heap size 会一直增长,造成内存泄漏。
   
   ### Current Behavior
   
   更新 option会造成 total js heap size  一直增长
   
   ### Expected Behavior
   
   更新 option, total js heap size 保持相对稳定
   
   ### Environment
   
   ```markdown
   - OS: windows
   - Browser: chrom
   ```
   
   
   ### Any additional comments?
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] helgasoft commented on issue #18686: [Bug] echarts 使用百度地图组件更新option,total js heap size一直增长,造成内存泄漏

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18686:
URL: https://github.com/apache/echarts/issues/18686#issuecomment-1569471055

   Is this JS heap you are referring to, in Chrome?  Yes, it's rising by toggling "Dark Mode".
   But if let alone it goes steadily back to single-digit KB size.  So it seems the browser GC is doing its job and freeing up memory.  There would be a problem if memory is NOT cleared, no?
   
   ![image](https://github.com/apache/echarts/assets/13038071/1ee9a4fc-9a45-4a94-9bb9-bc8722dfb40f)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] helgasoft commented on issue #18686: [Bug] echarts 使用百度地图组件更新option,total js heap size一直增长,造成内存泄漏

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18686:
URL: https://github.com/apache/echarts/issues/18686#issuecomment-1569613972

   sorry, I'm a newbie in performance issues and should not comment these questions. Was looking at the red numbers (size trend) 😓 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] echarts-bot[bot] commented on issue #18686: [Bug] echarts 使用百度地图组件更新option,total js heap size一直增长,造成内存泄漏

Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] commented on issue #18686:
URL: https://github.com/apache/echarts/issues/18686#issuecomment-1569416740

   @haolang It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   [Bug] echarts uses the Baidu map component to update the option, and the total js heap size keeps growing, causing memory leaks
   
   **BODY**
   
   ### Version
   
   5.4.2
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/zh/editor.html?c=heatmap-bmap
   
   ### Steps to Reproduce
   
   https://echarts.apache.org/examples/zh/editor.html?c=heatmap-bmap
   It can be reproduced in the official Baidu map heatmap example, constantly turning on and off the theme setting button (dark mode) Total JS Heap size will keep growing, causing memory leaks.
   
   ### Current Behavior
   
   Updating the option will cause the total js heap size to grow all the time
   
   ### Expected Behavior
   
   Update option, total js heap size remains relatively stable
   
   ### Environment
   
   ```markdown
   - OS: windows
   - Browser: chrom
   ```
   
   ### Any additional comments?
   
   _No response_
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] haolang commented on issue #18686: [Bug] echarts 使用百度地图组件更新option,total js heap size一直增长,造成内存泄漏

Posted by "haolang (via GitHub)" <gi...@apache.org>.
haolang commented on issue #18686:
URL: https://github.com/apache/echarts/issues/18686#issuecomment-1569592648

   > Is this JS heap you are referring to, in Chrome? Yes, it's rising by toggling "Dark Mode". But if let alone it goes steadily back to single-digit KB size. So it seems the browser GC is doing its job and freeing up memory. There would be a problem if memory is NOT cleared, no?
   > 
   > ![image](https://user-images.githubusercontent.com/13038071/242154625-1ee9a4fc-9a45-4a94-9bb9-bc8722dfb40f.png)
   
   However, even if I trigger college garbage manually, the memory footprint will not go down.
   
   ![image](https://github.com/apache/echarts/assets/29946750/82c3184c-910b-47d4-af05-e4c08aff6517)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org