[问题]Firefox占用内存真恐怖
- kelen
- 帖子: 734
- 注册时间: 2008-05-02 19:50
[问题]Firefox占用内存真恐怖
刚打开的时候才20多M,随着浏览网页与tab的增加,占用的内存自然曾加,这是很正常的,
但是关闭tab后,占用内存还是之前的量,即:
关掉增经浏览过的网页,但FX不会释放其网页占有的内存。。
这样到后来,FX可以拖着上百M的内存在跑,实属浪费。令人不快。有方法解决这个问题吗?
但是关闭tab后,占用内存还是之前的量,即:
关掉增经浏览过的网页,但FX不会释放其网页占有的内存。。
这样到后来,FX可以拖着上百M的内存在跑,实属浪费。令人不快。有方法解决这个问题吗?
- qiang_liu8183
- 论坛版主
- 帖子: 10699
- 注册时间: 2006-09-10 22:36
- 系统: Arch Debian
- 来自: 北京
- yjcong
- 帖子: 2470
- 注册时间: 2006-02-28 3:11
- kofshower
- 帖子: 1343
- 注册时间: 2007-03-13 11:23
- 联系:
看看你FF的hard-cache占了多大?
"We are all in the mud, but some of us are looking at the stars." (Oscar Wilde)
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
- kelen
- 帖子: 734
- 注册时间: 2008-05-02 19:50
- kelen
- 帖子: 734
- 注册时间: 2008-05-02 19:50
- xiaokang
- 帖子: 331
- 注册时间: 2006-06-13 14:47
- 来自: 黄鹤楼
- kofshower
- 帖子: 1343
- 注册时间: 2007-03-13 11:23
- 联系:
会释放的。
首先思路是如果是FF3的话绝对没有内存泄露。我有调试过~
可是这时候内存没有释放。
那就是有其他的地方还在引用。
这个时候tab页已经关闭咯。是什么东西引用这些内存?
我想可能是里面的nsIRDF****接口,或是nsIString
那么处理就先释放下Cache,不行的话删除~/.mozilla
最后还不行看看about:plugin中有没有可能出问题的插件
首先思路是如果是FF3的话绝对没有内存泄露。我有调试过~
可是这时候内存没有释放。
那就是有其他的地方还在引用。
这个时候tab页已经关闭咯。是什么东西引用这些内存?
我想可能是里面的nsIRDF****接口,或是nsIString
那么处理就先释放下Cache,不行的话删除~/.mozilla
最后还不行看看about:plugin中有没有可能出问题的插件
- 附件
-
- window.png (9.13 KiB) 查看 1437 次
"We are all in the mud, but some of us are looking at the stars." (Oscar Wilde)
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
- kelen
- 帖子: 734
- 注册时间: 2008-05-02 19:50
-
- 帖子: 31
- 注册时间: 2008-05-30 14:12
- kelen
- 帖子: 734
- 注册时间: 2008-05-02 19:50
- kofshower
- 帖子: 1343
- 注册时间: 2007-03-13 11:23
- 联系:
不应该呀。我这儿一般开了多少个网页都会释放kelen 写了:貌似的确与Cache有关,我每次退出FX后,此目录就得以清空。会释放的。
首先思路是如果是FF3的话绝对没有内存泄露。我有调试过~
可是这时候内存没有释放。
那就是有其他的地方还在引用。
这个时候tab页已经关闭咯。是什么东西引用这些内存?
我想可能是里面的nsIRDF****接口,或是nsIString
那么处理就先释放下Cache,不行的话删除~/.mozilla
最后还不行看看about:plugin中有没有可能出问题的插件
但是不可能每次都手动删除Cache吧。又或者完全退出FX呀。
"We are all in the mud, but some of us are looking at the stars." (Oscar Wilde)
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
- kofshower
- 帖子: 1343
- 注册时间: 2007-03-13 11:23
- 联系:
我这儿会释放的,而且调试了内存,也说明没有泄露。
我自己开了若干个sina,一会儿关闭截了两张图,上面时间间隔是30s左右,可以看到内存完全释放出来咯。
我是自己编译的3.0,这是内容:
Build platform
target
i686-pc-linux-gnu
Build tools
Compiler Version Compiler flags
gcc gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7) -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -W -Wno-long-long -pedantic -fno-strict-aliasing -pthread -pipe
c++ gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7) -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-long-long -pedantic -fno-strict-aliasing -fshort-wchar -pthread -pipe
Configure arguments
--enable-application=browser --enable-optimize --disable-tests --disable-mochitest
我自己开了若干个sina,一会儿关闭截了两张图,上面时间间隔是30s左右,可以看到内存完全释放出来咯。
我是自己编译的3.0,这是内容:
Build platform
target
i686-pc-linux-gnu
Build tools
Compiler Version Compiler flags
gcc gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7) -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -W -Wno-long-long -pedantic -fno-strict-aliasing -pthread -pipe
c++ gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7) -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-long-long -pedantic -fno-strict-aliasing -fshort-wchar -pthread -pipe
Configure arguments
--enable-application=browser --enable-optimize --disable-tests --disable-mochitest
"We are all in the mud, but some of us are looking at the stars." (Oscar Wilde)
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
- yjcong
- 帖子: 2470
- 注册时间: 2006-02-28 3:11
如果你的FF不能自动释放, 可以写个crontab, 比如每隔10分钟释放一次。 但这样有个问题, 就是关闭的网页就不能恢复了。kelen 写了:貌似的确与Cache有关,我每次退出FX后,此目录就得以清空。会释放的。
首先思路是如果是FF3的话绝对没有内存泄露。我有调试过~
可是这时候内存没有释放。
那就是有其他的地方还在引用。
这个时候tab页已经关闭咯。是什么东西引用这些内存?
我想可能是里面的nsIRDF****接口,或是nsIString
那么处理就先释放下Cache,不行的话删除~/.mozilla
最后还不行看看about:plugin中有没有可能出问题的插件
但是不可能每次都手动删除Cache吧。又或者完全退出FX呀。
一梦三年,
松风依旧,
萝月何曾老.
灵幽听微, 谁观玉颜?
灼灼春华, 绿叶含丹.
松风依旧,
萝月何曾老.
灵幽听微, 谁观玉颜?
灼灼春华, 绿叶含丹.