Google Chrome and (cache or memory leaks).

Posted by Alexey Ogarkov on Stack Overflow See other posts from Stack Overflow or by Alexey Ogarkov
Published on 2010-05-31T14:10:19Z Indexed on 2010/05/31 14:42 UTC
Read the original article Hit count: 289

Hello All,

I have a big problem with Google Chrome and its memory. My app is displaying to user several image charts and reloads them every 10s.

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.

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
In about:cache page there is no my cached images.

If i enable purge-memory-button for chrome (--purge-memory-button parameter) it`s not help.

Images is in 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.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about web-development