echarts icon indicating copy to clipboard operation
echarts copied to clipboard

echarts 在chrome 上会内存泄露

Open xzlmoon opened this issue 12 years ago • 26 comments

echarts 在chrome 上会内存泄露 echarts实例化后 在chrome上内存会不停的长。

xzlmoon avatar Aug 03 '14 11:08 xzlmoon

哪个例子?

pissang avatar Aug 03 '14 13:08 pissang

http://echarts.baidu.com/doc/start.html

这个页面 在谷歌下就会出现内存泄漏

在我的一个项目中也用到了 echarts 内存每秒要加0.5M左右 。

但是在ie 和 firefox 下没有发现这个现象

xzlmoon avatar Aug 03 '14 15:08 xzlmoon

不好意思没留意你的回复,我这在chrome devtools没发现内存泄露的问题,交互的时候是会有上涨,但是过一段时间内存回收后又会回落

pissang avatar Aug 11 '14 05:08 pissang

是的在chrome devtools是看不到这个内存溢出的, 但是在windows 的任务管理器会看到一个chrome的进程占用内存不停的在上涨, 结束这个进程后,echarts的页面会崩贵, 其他页面正常。 检测 http://echarts.baidu.com/doc/start.html 发现了这个现象 在示例的页面中没有看到这个现象

— Reply to this email directly or view it on GitHub.

xzlmoon avatar Aug 12 '14 05:08 xzlmoon

今天又跟踪次chrome下的内存泄漏 , 发现在 iframe 中使用echarts 就会出现内存泄漏, 使用下面这个html检测到的: