Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to keep Microsoft Edge from reloading my page as soon as memory hits the 4GB mark?

Tags:

I'm in the process of refactoring a demo where +70,000 flight trajectories with approximately 3,500,000 recorded positions are loaded into a map with live 2D to 3D switching.

As you can imagine, this consumes quite a lot of memory. In fact, I'm currently hitting peaks of up to 4,25GB memory consumption in Chrome :

enter image description here

Unfortunately, memory consumption in Edge is even worse! Edge doesn't even get below 3,2GB after loading the data, and on average it seems to consume about 1GB more of memory in Chrome.

To make things worse, Edge can't handle 4GB of memory for one page. As soon as my memory consumption his the 4GB mark, it kills the process and starts reloading the page :

enter image description here

Can anyone help me come up with a way to overcome this problem in Edge without reducing the amount of data that's being loaded into the browser?

For example, is there a way to change the memory limits for Edge so it can handle pages of 4GB and up? Or what do you suggest I could try to prevent the used memory of my page from reaching the 4GB mark?

like image 463
John Slegers Avatar asked Jun 29 '17 14:06

John Slegers


People also ask

How do I stop Microsoft Edge from auto refreshing?

Disable auto-refresh in Edge browser Microsoft Edge doesn't have a built-in function that allows you to block auto-refresh of webpages. You will have to download & install a Chrome Extension called Auto Refresh Blocker or Stop AutoRefresh.

How do I stop Microsoft Edge from using my RAM?

Press Shift + Esc or go to the Microsoft Edge main menu and select More tools > Browser Task Manager to open the Microsoft Edge Browser Task Manager. Right-click the table header of the Microsoft Edge Browser Task Manager, and then enable JavaScript memory.

Why does my Microsoft Edge keep refreshing?

The reasons for Microsoft Edge refreshing itself may include hardware problems, malware infections, overloaded cache, system problems, outdated app, etc. Make sure your F5 button is not stuck.

How much memory should Edge be using?

On the final test, with 40 tabs open across two instances (20 tabs apiece), Edge required 2.5 GB RAM altogether, while Chrome needed 2.8 GB and Firefox needed 3.0 GB.

How to troubleshoot Microsoft Edge browser memory issues?

Use the Microsoft Edge Browser Task Manager as a starting point to your memory issue investigation. The Microsoft Edge Browser Task Manager is a realtime monitor that tells you how much memory a page is currently using.

Should you turn off page reloading in Microsoft Edge?

You can continue using Edge like you normally would, and you won’t even notice that it’s enabled. Because Edge doesn’t suspend tabs, you won’t have to wait for the page to reload or worry about data loss. Still, if you don’t like this feature, you can turn it off in just a couple of clicks.

How does Microsoft Edge think about memory usage?

How Microsoft Edge thinks about memory usage The memory usage of a browser can be looked at in many ways and is dependent on several factors. Here, for Microsoft Edge, the memory metrics that we are most interested in are commit and private working set. Commit is the total amount of private memory allocations made by a process.

How to monitor memory use in realtime in Microsoft Edge browser?

Monitor memory use in realtime with the Microsoft Edge Browser Task Manager. Use the Microsoft Edge Browser Task Manager as a starting point to your memory issue investigation. The Microsoft Edge Browser Task Manager is a realtime monitor that tells you how much memory a page is currently using. Select Shift + Esc or navigate to ...


1 Answers

I faced similar problems with IE and Silverlight in which the application was rendering maps, lines with animations etc. IE could not render/load/animate when the memory exceeds 1.5gb. No matter what the version of IE or Windows, the problem could not be resolved so the related bug had been marked as a COTS issue. I don't know if there is an exact memory limits (there is no related documation) but I know you cannot tune memory constraints for IE. So, you should handle this issue in your application code logics. You should figure out in what situations the problem occurs because the problem may not be the exact memory size. The problem may still exists even if you handle the issue for 4Gb limitations. By the way, the demo application you submitted does not support neither IE or Edge which may be due to the issues above.

like image 101
ali Avatar answered Feb 08 '23 02:02

ali