Memory leak on page reload

Confirmed Issue #8584010 • Assigned to Todd R.


Sean P.
Aug 22, 2016
This issue is public.
Found in
  • Microsoft Edge
Found in build #
Reported by 5 people

Sign in to watch or report this issue.

Steps to reproduce

Environment: Edge 25.10568.0.0

Behaviour: While developing a medium-size AngularJS app we noticed the process memory usage continued to increase after each page refresh.

Expected: We expected the process memory not to increase substantially when the page is refreshed. We assumed that the memory used would be deallocated, and then (or subsequent to) the page refreshing.

Reproducing the problem: Considering the problem appears to be with the deallocation of resources on a page refresh, the following simple code sample will result in a linear increase in process memory.

  1. Save and open the following HTML
  2. Open the Dev Tools and start memory profiling

A steady linear increase will occur in the reported total memory. For the impatient, after profiling has started change the timeout from 1000 ms to 50.

<head><title>Linear process memory increase</title>
var t;
function reload() {
t = window.setTimeout(reload, 1000);
<body>Hello, world!</body>

Heap snapshots are cleared after each refresh, but if you’re quick you’ll see that they aren’t increasing in size. (In my tests, they are between 24 and 25 KB).


Comments and activity

  • It appears the Markdown code fence does not render the HTML properly in the Issue. The file is attached. If you are triaging this issue, please raise an issue about the issues platform.

  • Retrying the example HTML to reproduce the issue:

    Linear process memory increase
    Hello, world!
  • Microsoft Edge Team

    Changed Assigned To to “Brad E.”

    Changed Assigned To to “Rico M.”

    Changed Assigned To from “Rico M.” to “Riff J.”

    Changed Status to “Confirmed”

    Changed Assigned To from “Riff J.” to “Todd R.”

You need to sign in to your Microsoft account to add a comment.

Sign in