简体   繁体   English

谷歌浏览器和(缓存或内存泄漏)

[英]Google Chrome and (cache or memory leaks)

I have a big problem with Google Chrome and its memory. 谷歌Chrome及其内存存在很大问题。 My app is displaying to user several image charts and reloads them every 10s. 我的应用程序向用户显示多个图像图表并每10秒重新加载一次。

In the interval i have code like that 在区间我有这样的代码

var image = new Image();
var src = 'myurl/image'+new Date().getTime();
image.onload = function() {
    document.getElementById('myimage').src = src;
    image.onload = image.onabort = image.onerror = null;
}
image.src = src;

So i have no memory leaks in Firefox and IE. 所以我在Firefox和IE中没有内存泄漏。

Here the response headers for images 这里是图像的响应标题

Server Apache-Coyote/1.1
Vary * 
Cache-Control no-store (// I try no-cache, must-revalidate and so on here)
Content-Type image/png
Content-Length 11131
Date Mon, 31 May 2010 14:00:28 GMT

Vary * taken from here Vary *取自此处
In about:cache page there is no my cached images. 在about:缓存页面中没有我的缓存图像。

If i enable purge-memory-button for chrome (--purge-memory-button parameter) it`s not help. 如果我为chrome(--purge-memory-button参数)启用purge-memory-button,则没有用。

Images is in PNG24. 图像在PNG24中。

So i think that the problem is not in cache. 所以我认为问题不在缓存中。
May be Google Chrome is not releasing memory for old images. 可能是谷歌浏览器没有为旧图像发布内存。

Please help. 请帮忙。 Any suggestions. 有什么建议。 Thanks. 谢谢。

Update: Seems to be fixed http://code.google.com/p/chromium/issues/detail?id=36142 更新:似乎已修复http://code.google.com/p/chromium/issues/detail?id=36142

I found an issue in chromium bug tracker here so may be it`sa google-chrome bug. 我在这里发现了铬虫追踪器的一个问题,所以可能是一个google-chrome bug。

EDIT 编辑

Issue is already fixed 问题已经解决

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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