Reputation: 415
I have a SPA application that works great without memory leaks in chrome.
However, IE11 (Windows 10) crashes every 15 minutes.
Please don't tell me IE11 is deprecated. My company supports IE11 and our customers are using IE11.
I know IFrames cause memory leaks on IE11.
I heard gifs cause memory leaks as well on IE11, Is it true?
From your experience:
I would like to collect here all possible reasons for IE11 memory leak.
Upvotes: 0
Views: 1289
Reputation: 11365
There are many reasons that can cause the memory leaks, here we don't have any information about your SPA so it is hard for us to say what caused the memory leak in it.
I suggest you visit the following links that may give you an idea about the possible causes of memory leaks.
Memory Leakage in Internet Explorer - Revisited
Edge/Internet Explorer memory leak
The links that I have shared in the 1st point will also give suggestions to avoid the leaks.
I tried to refer to the official Microsoft docs on this topic. I found that links in those docs are broken.
Tools for Detecting Memory Leaks
JavaScript Memory Leak Detector for Internet Explorer
You may need to refresh the page. In some situations, it can work. Obviously, the user will be interrupted.
Here is an example:
var startTime, endTime;
function start() {
startTime = new Date();
};
function end() {
endTime = new Date();
var timeDiff = endTime - startTime; //in ms
// strip the ms
timeDiff /= 1000;
// get seconds
var seconds = Math.round(timeDiff);
console.log(seconds + " seconds");
if (seconds > 60)
console.log("IE11 just froze. We need to refresh.");
}
start();
setInterval(function () {
end();
start();
}, 1000);
Detect when IE11, with its built-in memory leak, runs out of memory (1.5GB recyclable pool)
Upvotes: 2