Internet Explorer 每次刷新都会消耗越来越多的 RAM

发布于 2024-10-26 05:11:48 字数 276 浏览 6 评论 0原文

我刚刚开始使用一个应用程序,每次刷新起始页时,内存消耗都会增加 3-4 Mb。我用 sIEve (http://home.wanadoo.nl/jsrosman/) 做了一些分析发现大量内存泄漏。但我见过其他网站(即 facebook)具有相同数量的泄漏,但内存增加速度不如此应用程序。这种行为还有其他原因吗?

有没有人有任何关于从什么开始的提示,任何其他工具等来查找最严重的泄漏或内存升级的原因?

I have just started working with an application that for every time I refresh the start page it increases the memory consumption by 3-4 Mb. I have done some analysis with sIEve (http://home.wanadoo.nl/jsrosman/) and found a lot of memory leaks. But I have seen other websites (i e facebook) with the same number of leaks that does not increase in memory as rapid as this application. Can there be other reasons for this behaviour?

Does anyone have any tips on what to start with, any other tools e t c to find the worst leaks or causes of memory escalation?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

世俗缘 2024-11-02 05:11:48

哪个版本的IE? IE8 应该能更好地处理内存泄漏。
即使刷新后,内存泄漏也可能会持续存在。
您可以找到很多示例。通常,您可以在页面刷新后恢复一些内存,但在某些情况下(我相信使用插件)内存无法完全恢复。渐渐地,情况变得越来越糟,直到您关闭浏览器。

但就像我说的 - IE8 应该已经解决了其中的一些问题。

IE8 仍然可能存在内存泄漏。与 DOM 有关的东西。如果您有一个复杂的 jQuery 应用程序,执行大量 DOM 工作,并且页面从不刷新(即,该应用程序是使用 AJAX 的单个页面),您会看到内存不断增加,即使您认为自己正在正确清除内容。

这个故事的寓意是:IE 很糟糕。

Which version of IE? IE8 is supposed to be better at handling memory leaks.
You can memory leaks that hang around even after a refresh.
There are lots of examples you can find. Usually you can recoup some memory after a page refresh, but there are some cases (I believe with plugins) where memory is not completely recovered. Gradually it gets worse and worse until you close the browser.

But like I said - IE8 was supposed to have solved some of this.

IE8 can still have memory leaks. Something to do with the DOM. If you have a complex jQuery application doing a lot of DOM work and the page never refreshes (i.e., the application is a single page using AJAX) you can see the memory go up and up even though you think you are clearing things out properly.

Moral of the story: IE sucks.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文