Fanolian 寫:
可以的話請把[tt]about:memory?verbose[/tt]貼上來,你的有很多資料被忽略掉。(omitted 那些都是)
│ ├──126.07 MB (11.02%) -- (105 omitted)
├─────44.12 MB (03.86%) -- layout
│ └──44.12 MB (03.86%) -- (140 omitted)
你說你當時只剩大約40個分頁,但還有105個以上的compartment 存在。有可能是你瀏覽的網頁會連去很多其他的網站(廣告,資料收集網站等)。
不過如果你到[tt]about:memory?verbose[/tt],如果發現有很多地址都是你目前的session 曾經去過,但該分頁已經關掉很久(大約幾分鐘以上)而仍然遺留在那的話,那你就可以遇到了
zombie compartment。這些zombie compartment 多數是由套件產生。你可以把你在用的套件列舉出來,以及到
Bug 668871 及
Bug 700547 找找看,是否遇到已知的問題。
│ ├──116.53 MB (10.19%) -- compartment(
https://www.facebook.com/plugins/activi ... tions=true)
看來facebook 吃了你很多memory。如果把facebook 的分頁關掉,等大約幾分鐘,看看這個compartment 會否消失?如果不會,有可能是其他網站內的facebook 按鈕/資訊版面令它繼續留在記憶體內,不會被釋放出來。(我用不著這些東西,所以都把這些社交網站東西擋掉,這樣每個頁面都少讀取很多資料,增加瀏覽的流暢度。)
沒有辦法把上述這個 session 的 memory:verbose 貼出來, 因為 ff 當掉了!
又, 可能也同時是因為 nsSessionStore 的問題, 系統並沒有儲存當掉時所開的 session.
重新執行 ff 後系統的 "回復瀏覽狀態" 一直是同一個 session, 而且是很多天以前的.
底下貼的是剛剛當掉後重新啟動 ff9.0.1, 頁面只有兩個:
1 是 "回復瀏覽狀態" (啟動後系統開了這個 頁面 和 FEBE 網站頁面 --- 也沒更新它, 不知道怎麼會自動連去?)
2 是 session:verbose (這是沒有進行還原, 直接在 FEBE 頁面的 URL 區下指令 memory:verbose)
光光開兩個系統內訊息的 tab, ff 就吃掉超過 300MB....
(對比另外一個全新的 profile, 裝了差不多一樣的 extensions, 只開了一個 about:memory, 只吃 100M 左右)
----------------------------------------------------------------------------
Main Process
Explicit Allocations
361,404,970 B (100.0%) -- explicit
├──209,862,148 B (58.07%) -- heap-unclassified
├──139,994,230 B (38.74%) -- js
│ ├──134,345,254 B (37.17%) -- compartment([System Principal], 0x476d000)
│ │ ├──107,441,622 B (29.73%) -- string-chars
│ │ ├───13,635,584 B (03.77%) -- gc-heap
│ │ │ ├───6,986,120 B (01.93%) -- objects
│ │ │ ├───3,451,800 B (00.96%) -- shapes
│ │ │ ├───1,609,440 B (00.45%) -- scripts
│ │ │ ├─────818,928 B (00.23%) -- strings
│ │ │ ├─────607,648 B (00.17%) -- arena-unused
│ │ │ ├──────73,216 B (00.02%) -- type-objects
│ │ │ ├──────53,264 B (00.01%) -- arena-headers
│ │ │ ├──────34,232 B (00.01%) -- arena-padding
│ │ │ └─────────936 B (00.00%) -- xml
│ │ ├────3,799,248 B (01.05%) -- script-data
│ │ ├────2,647,200 B (00.73%) -- object-slots
│ │ ├────2,457,600 B (00.68%) -- mjit-code
│ │ │ ├──1,999,592 B (00.55%) -- method
│ │ │ ├────398,116 B (00.11%) -- regexp
│ │ │ └─────59,892 B (00.02%) -- unused
│ │ ├────1,319,112 B (00.36%) -- analysis-temporary
│ │ ├────1,177,792 B (00.33%) -- property-tables
│ │ ├──────870,288 B (00.24%) -- mjit-data
│ │ ├──────374,976 B (00.10%) -- shape-kids
│ │ ├──────258,112 B (00.07%) -- tjit-data
│ │ │ ├──122,944 B (00.03%) -- trace-monitor
│ │ │ ├───83,968 B (00.02%) -- allocators-main
│ │ │ └───51,200 B (00.01%) -- allocators-reserve
│ │ ├──────132,616 B (00.04%) -- type-inference
│ │ │ ├───73,216 B (00.02%) -- object-main
│ │ │ └───59,400 B (00.02%) -- script-main
│ │ ├──────131,072 B (00.04%) -- tjit-code
│ │ └──────100,032 B (00.03%) -- object-empty-shapes
│ ├────2,314,304 B (00.64%) -- compartment(atoms)
│ │ ├──1,400,880 B (00.39%) -- string-chars
│ │ ├────913,408 B (00.25%) -- gc-heap
│ │ │ ├──897,152 B (00.25%) -- strings
│ │ │ ├───11,024 B (00.00%) -- arena-unused
│ │ │ ├────3,568 B (00.00%) -- arena-headers
│ │ │ └────1,664 B (00.00%) -- arena-padding
│ │ └─────────16 B (00.00%) -- analysis-temporary
│ ├────1,834,688 B (00.51%) -- gc-heap-chunk-dirty-unused
│ ├──────696,320 B (00.19%) -- runtime
│ │ ├──524,288 B (00.15%) -- atoms-table
│ │ └──172,032 B (00.05%) -- runtime-object
│ ├──────262,144 B (00.07%) -- stack
│ ├──────258,368 B (00.07%) -- gc-heap-chunk-admin
│ ├──────181,352 B (00.05%) -- compartment(null-principal)
│ │ ├──102,400 B (00.03%) -- gc-heap
│ │ │ ├───43,480 B (00.01%) -- arena-unused
│ │ │ ├───33,336 B (00.01%) -- objects
│ │ │ ├───23,560 B (00.01%) -- shapes
│ │ │ ├────1,152 B (00.00%) -- type-objects
│ │ │ ├──────400 B (00.00%) -- arena-headers
│ │ │ ├──────280 B (00.00%) -- arena-padding
│ │ │ ├──────120 B (00.00%) -- scripts
│ │ │ └───────72 B (00.00%) -- xml
│ │ ├───65,536 B (00.02%) -- mjit-code
│ │ │ ├──65,380 B (00.02%) -- unused
│ │ │ ├──────80 B (00.00%) -- method
│ │ │ └──────76 B (00.00%) -- regexp
│ │ ├────9,072 B (00.00%) -- object-slots
│ │ ├────1,728 B (00.00%) -- object-empty-shapes
│ │ ├────1,152 B (00.00%) -- type-inference
│ │ │ └──1,152 B (00.00%) -- object-main
│ │ ├────1,120 B (00.00%) -- property-tables
│ │ ├──────320 B (00.00%) -- shape-kids
│ │ ├───────16 B (00.00%) -- analysis-temporary
│ │ └────────8 B (00.00%) -- script-data
│ ├───────65,808 B (00.02%) -- compartment(
http://softwarebychuck.com/febe/Welcome ... lcome.html)
│ │ ├──65,536 B (00.02%) -- mjit-code
│ │ │ ├──48,224 B (00.01%) -- unused
│ │ │ ├──12,048 B (00.00%) -- method
│ │ │ └───5,264 B (00.00%) -- regexp
│ │ ├─────256 B (00.00%) -- type-inference
│ │ │ └──256 B (00.00%) -- tables
│ │ └──────16 B (00.00%) -- analysis-temporary
│ ├───────35,992 B (00.01%) -- compartment(moz-nullprincipal:{d0706346-a2b2-43d5-93d8-ced83f24b8de})
│ │ ├──32,768 B (00.01%) -- gc-heap
│ │ │ ├──26,592 B (00.01%) -- arena-unused
│ │ │ ├───3,480 B (00.00%) -- objects
│ │ │ ├───2,240 B (00.00%) -- shapes
│ │ │ ├─────128 B (00.00%) -- arena-headers
│ │ │ ├─────120 B (00.00%) -- scripts
│ │ │ ├─────112 B (00.00%) -- arena-padding
│ │ │ └──────96 B (00.00%) -- type-objects
│ │ ├───2,544 B (00.00%) -- object-slots
│ │ ├─────256 B (00.00%) -- property-tables
│ │ ├─────160 B (00.00%) -- shape-kids
│ │ ├─────144 B (00.00%) -- object-empty-shapes
│ │ ├──────96 B (00.00%) -- type-inference
│ │ │ └──96 B (00.00%) -- object-main
│ │ ├──────16 B (00.00%) -- analysis-temporary
│ │ └───────8 B (00.00%) -- script-data
│ └────────────0 B (00.00%) -- gc-heap-chunk-clean-unused
├────7,626,000 B (02.11%) -- storage
│ └──7,626,000 B (02.11%) -- sqlite
│ ├──4,556,704 B (01.26%) -- places.sqlite
│ │ ├──4,372,736 B (01.21%) -- cache-used [4]
│ │ ├────135,976 B (00.04%) -- stmt-used [4]
│ │ └─────47,992 B (00.01%) -- schema-used [4]
│ ├────790,088 B (00.22%) -- other
│ ├────775,536 B (00.21%) -- cookies.sqlite
│ │ ├──763,792 B (00.21%) -- cache-used
│ │ ├────9,920 B (00.00%) -- stmt-used
│ │ └────1,824 B (00.00%) -- schema-used
│ ├────524,632 B (00.15%) -- extensions.sqlite
│ │ ├──428,272 B (00.12%) -- cache-used
│ │ ├───89,440 B (00.02%) -- stmt-used
│ │ └────6,920 B (00.00%) -- schema-used
│ ├────365,456 B (00.10%) -- addons.sqlite
│ │ ├──329,552 B (00.09%) -- cache-used
│ │ ├───31,136 B (00.01%) -- stmt-used
│ │ └────4,768 B (00.00%) -- schema-used
│ ├────265,072 B (00.07%) -- webappsstore.sqlite
│ │ ├──205,480 B (00.06%) -- cache-used
│ │ ├───55,640 B (00.02%) -- stmt-used
│ │ └────3,952 B (00.00%) -- schema-used
│ ├────257,152 B (00.07%) -- chromeappsstore.sqlite
│ │ ├──198,216 B (00.05%) -- cache-used
│ │ ├───54,984 B (00.02%) -- stmt-used
│ │ └────3,952 B (00.00%) -- schema-used
│ ├─────22,168 B (00.01%) -- downloads.sqlite
│ │ ├──14,440 B (00.00%) -- cache-used
│ │ ├───5,944 B (00.00%) -- stmt-used
│ │ └───1,784 B (00.00%) -- schema-used
│ ├─────22,072 B (00.01%) -- search.sqlite
│ │ ├──19,072 B (00.01%) -- cache-used
│ │ ├───1,792 B (00.00%) -- stmt-used
│ │ └───1,208 B (00.00%) -- schema-used
│ ├─────19,032 B (00.01%) -- content-prefs.sqlite
│ │ ├───8,648 B (00.00%) -- cache-used
│ │ ├───7,984 B (00.00%) -- stmt-used
│ │ └───2,400 B (00.00%) -- schema-used
│ ├─────11,152 B (00.00%) -- permissions.sqlite
│ │ ├───5,888 B (00.00%) -- stmt-used
│ │ ├───4,000 B (00.00%) -- cache-used
│ │ └───1,264 B (00.00%) -- schema-used
│ ├─────10,936 B (00.00%) -- signons.sqlite
│ │ ├───6,312 B (00.00%) -- cache-used
│ │ ├───2,824 B (00.00%) -- schema-used
│ │ └───1,800 B (00.00%) -- stmt-used
│ └──────6,000 B (00.00%) -- formhistory.sqlite
│ ├──4,000 B (00.00%) -- cache-used
│ ├──2,000 B (00.00%) -- schema-used
│ └──────0 B (00.00%) -- stmt-used
├────1,831,208 B (00.51%) -- layout
│ ├────675,988 B (00.19%) -- shell(chrome://browser/content/browser.xul)
│ │ ├──526,624 B (00.15%) -- arenas
│ │ └──149,364 B (00.04%) -- styledata
│ ├────387,796 B (00.11%) -- shell(chrome://firebug/content/panel.html)
│ │ ├──298,852 B (00.08%) -- styledata [3]
│ │ └───88,944 B (00.02%) -- arenas [3]
│ ├────344,372 B (00.10%) -- shell(chrome://firebug/content/firefox/firebugFrame.xul)
│ │ ├──235,840 B (00.07%) -- arenas
│ │ └──108,532 B (00.03%) -- styledata
│ ├────132,724 B (00.04%) -- shell(about:memory)
│ │ ├───83,408 B (00.02%) -- arenas
│ │ └───49,316 B (00.01%) -- styledata
│ ├────130,480 B (00.04%) -- shell(about:sessionrestore)
│ │ ├───80,720 B (00.02%) -- arenas
│ │ └───49,760 B (00.01%) -- styledata
│ ├─────80,756 B (00.02%) -- shell(about:memory?verbose)
│ │ ├──49,316 B (00.01%) -- styledata
│ │ └──31,440 B (00.01%) -- arenas
│ └─────79,092 B (00.02%) -- shell(
resource://gre-resources/hiddenWindow.html)
│ ├──49,444 B (00.01%) -- styledata
│ └──29,648 B (00.01%) -- arenas
├──────956,440 B (00.26%) -- xpti-working-set
├──────673,765 B (00.19%) -- images
│ ├──368,533 B (00.10%) -- content
│ │ ├──276,334 B (00.08%) -- unused
│ │ │ ├──252,608 B (00.07%) -- uncompressed-heap
│ │ │ ├───23,726 B (00.01%) -- raw
│ │ │ └────────0 B (00.00%) -- uncompressed-nonheap
│ │ └───92,199 B (00.03%) -- used
│ │ ├──79,904 B (00.02%) -- uncompressed-heap
│ │ ├──12,295 B (00.00%) -- raw
│ │ └───────0 B (00.00%) -- uncompressed-nonheap
│ └──305,232 B (00.08%) -- chrome
│ ├──305,232 B (00.08%) -- used
│ │ ├──305,232 B (00.08%) -- uncompressed-heap
│ │ ├────────0 B (00.00%) -- raw
│ │ └────────0 B (00.00%) -- uncompressed-nonheap
│ └────────0 B (00.00%) -- unused
│ ├──0 B (00.00%) -- raw
│ ├──0 B (00.00%) -- uncompressed-heap
│ └──0 B (00.00%) -- uncompressed-nonheap
├──────402,517 B (00.11%) -- dom
├───────54,378 B (00.02%) -- network-memory-cache
├────────4,284 B (00.00%) -- cycle-collector
└────────────0 B (00.00%) -- spell-check
Other Measurements
515,188 B -- gfx-d2d-surfacecache
7,521,148 B -- gfx-d2d-surfacevram
648,464 B -- gfx-surface-image
0 B -- gfx-surface-win32
340,875,082 B -- heap-allocated
346,746,880 B -- heap-committed
2,613,248 B -- heap-dirty
10,388,644 B -- heap-unallocated
2 -- js-compartments-system
3 -- js-compartments-user
16,777,216 B -- js-gc-heap
688,744 B -- js-gc-heap-arena-unused
0 B -- js-gc-heap-chunk-clean-unused
1,834,688 B -- js-gc-heap-chunk-dirty-unused
15.04% -- js-gc-heap-unused-fraction
415,318,016 B -- private
415,313,920 B -- resident
723,812,352 B -- vsize