メモリ使用量スレッド FAQ
PluginDoc: Firefox Memory Usage FQA(旧The one and only "Memory usage" thread & FQA - MozillaZine Forums) の翻訳です。(4月13日分まで更新)
目次
このスレッドについて
はじめに
Firefox のメモリ使用量は Firefox 1.5 がリリースされてから非常にホットな話題となっています。このスレッドは Firefox のメモリ使用量を最小にするためのノウハウ、Firefox でメモリリークを起こすと分っていること、何がメモリリークで何がそうでないか、メモリリークの修正状況、協力の仕方を提供するために作成されています。
スレッドノート
- 議論は歓迎します(実際、奨励されます)。しかしながら、このスレッドにおける誤った行動は一週間でごみ箱行きにされるでしょ。反論や議論は可能ですが、礼儀は尽くすべきです。
- FQA は "Frequently Questioned Answers" の略であり、このスレッドに適しています。
謝辞
このスレッドの情報と解決策は多くのユーザ、スレッド、MozillaZine ナレッジベースに基づいています。
Special thanks to:
Jesse Ruderman
Steve England
Fellow old timer schapel
テーマ、拡張機能、プラグイン
テーマと拡張機能
Themes and extensions can cause memory usage to increase significantly. Try running Firefox in Safe Mode to see if it is a theme or extension causing your problem. See also Known Leaky Extensions.
テーマと拡張機能はメモリ使用量を著しく増大させる場合があります。テーマや拡張機能が問題を引き起こしているかどうかは Firefox をセーフモードで実行してみてください。既知のメモリリーク拡張機能の項も参照してください。
Adblock
Using old versions of Adblock with Firefox 1.5 is a bad idea in general, and has been reported to cause increases in memory usage. Firefox 1.5 users should use AdBlock Plus or upgrade to Adblock 0.5.3.042. If you have not installed Firefox 1.5 yet, uninstall Adblock and restart Firefox twice before installing Firefox 1.5.
Firefox 1.5 で古いバージョンの Adblock を使用するのは一般的に避けたほうがよく、メモリ使用量を増加させると報告されています。Firefox 1.5 ユーザは AdBlock Plus を使用するか、または Adblock 0.5.3.042 にアップグレードするべきです。まだ Firefox 1.5 をインストールしていなければ、Adblock をアンインストールして、Firefox 1.5 をインストールする前に Firefox を2回再起動してください。
Fasterfox
The Fasterfox extension has a feature that enables prefetching of all static links in the page you are viewing ("Enhanced Prefetching"). This is off by default. Whilst switching this on can decrease the amount of time taken to load pages (because it fetches them before you attempt to view them), it will also increase memory usage.
Fasterfox 拡張機能は閲覧しているページに含まれる静的なリンクをすべて先読みする機能を有効にする設定 ("Enhanced Prefetching") を持っています。これはデフォルトではオフです。これをオンに設定すると、(ページを見る前に先読みするので)ページの読み込み時間を低下させ、同時にメモリ使用量を増加させます。
Firefox Preloader
Using the Firefox Preloader will increase memory usage. Disabling it if you do not need it will save memory. (Yes, I know this behaviour is by design...)
Firefox Preloader を使うとメモリ使用量を増加させます。必要の無いときには無効にするとメモリを節約できます。
プラグイン
Some browser plugins, particularly Adobe Reader and Java, can use large amounts of memory. Since plugins are not unloaded after use, restarting Firefox can help.
いくつかのプラグイン、特に Adobe Reader と Java は多くのメモリを使用します。プラグインは使用後に開放されないので、メモリを削減するには Firefox を再起動する必要があります。
Java
Java users should update to Java Runtime Environment 1.5.0_06. Turning off the Java Console using the Java Control Panel may also reduce memory usage.
Java ユーザは Java Runtime Environment 1.5.0_06 にアップグレードすべきです。Java コントロールパネルを使用する Java コンソールをオフにするとメモリ使用量を削減できます。
Adobe Reader
Adobe Reader 6.0, and to a lesser extent 7.0, can use large amounts of memory. Upgrading to Adobe Reader 7.0.5 can help reduce memory usage. Disabling unused Adobe Reader plugins can help too.
Adobe Reader 6.0 以上 7.0 未満は大量のメモリを使用します。Adobe Reader 7.0.5 へのアップグレードはメモリ使用量を削減できます。使用しない Adobe Reader プラグインの無効化もまた効果があります。
Firefox Tweaks
Firefox のメモリキャッシュ
By default, Firefox does not use a fixed size memory cache - it uses a percentage of system memory. Setting a fixed size memory cache can often reduce memory usage - 4 or 8MB is sufficient in most instances. To set a fixed size memory cache, add the following pref using about:config:
browser.cache.memory.capacity
This is an integer pref, and can be set to the size you want the cache to be (in kilobytes).
デフォルトでは、Firefox は固定サイズのキャッシュを使用せず、システムメモリの一定割合を使用します。通常、固定サイズのキャッシュの設定はメモリ使用量を削減します。大抵は4~8MBもあれば十分です。固定サイズのキャッシュを設定するには、about:config を利用して以下の設定を追加します:
browser.cache.memory.capacity
これは整数値の設定であり、使用したいキャッシュの量を KB 単位で設定します。
There has been some debate about how Firefox sets the memory cache size. See bug 105344, bug 204164 and bug 296538 for various discussion about this issue.
Firefox がどのようにメモリキャッシュサイズを設定するかに関して議論がありました。この件に関するさまざまな議論は bug 105344、bug 204164、bug 296538 を参照してください。
To disable the memory cache entirely, set browser.cache.memory.enable to false. Note that this is not advised unless you're extremely short of memory, as it can slow things down severely, as well as causing other odd behaviour.
メモリキャッシュを完全に禁止するには、browser.cache.memory.enable を false に設定します。これは明らかな速度低下と他の面倒な現象も引き起こすので、極端にメモリが不足しているのでなければ推奨できません。
最小化時のメモリ使用量
There is a pref that enables trimming Firefox memory usage when you minimize all Firefox windows. This pref is for Windows only. To enable it, set config.trim_on_minimize to true using about:config.
すべての Firefox ウィンドウを最小化した際に Firefox のメモリ使用量を切り詰めることを可能とする設定があります。この設定は Windows 専用です。有効にするには、about:config を利用して config.trim_on_minimize を true に設定します。
高速 Back/Forward
Firefox 1.5 has a new fast back/forward feature (bfcache) that vastly reduces the amount of time taken to display pages when the back/forward buttons are used. This adds to memory usage.
Firefox 1.5 は新しい高速な Back/Forward 機能 (bfcache) を装備しており、これは戻る/進むボタンが使用されたときにページの表示速度を非常に短縮します。この機能はメモリ使用量を増加させます。
To disable this, set browser.sessionhistory.max_total_viewers to 0 using about:config. You can also control the number of pages stored instead of disabling it entirely, this is documented in the MozillaZine Knowledge Base. Note that the amount of memory used will vary according to the size and content of pages.
これを無効にするには、about:config を利用して browser.sessionhistory.max_total_viewers を0に設定します。完全に無効にする代わりに保存するページ数を制御することもできます。これは bfcache による使用メモリを制御: browser.sessionhistory.max_total_viewers に記載されています。メモリ使用量の合計はページのサイズとコンテンツに大きく影響されることに注意してください。
ブラウザ履歴
Setting the browser history to extremely large values will increase memory usage. Keeping the history to a reasonable level is a good idea for this reason.
ブラウザの履歴保存数を極端に大きな値に設定するとメモリ使用量が増加します。このことから履歴保存数を適度なレベルに維持することが推奨されます。
ダウンロードマネージャ
Clearing out the list of downloaded files every so often will reduce memory usage.
ダウンロード履歴をこまめにクリアするとメモリ使用量を削減できます。
その他の問題
JavaScript
Pages with lots of (or bad) JavaScript can increase memory usage. Using NoScript to control when sites can use JavaScript can help in this situation.
大量の(もしくは粗悪な)JavaScript を含むページはメモリ使用量を増加させます。サイトが JavaScript を使用できるかをコントロールする NoScript を使用することによりこの問題に対応できます。
プロファイルの破損
Profile corruption can cause all sorts of strange behaviour, including increasing memory usage. If you suspect your profile is corrupted, or none of the other suggestions work, you can try creating a new profile.
プロファイルの破損はメモリ使用量の増加を含むさまざまな異常動作を引き起こします。プロファイルが破損していると疑われるとき、または他にやるべきことが無いときは、新しいプロファイルを作成してみてください。
バグと修正
Firefox 1.5.0.2 での修正
以下のメモリリークは Firefox 1.5.0.2 で修正済みです。
- Bug 321283 - Using Find causes documents to leak
- Bug 323532 - Leak when using history autocomplete
- Bug 323377 - Lots of leaks in nsInternetSearchService
Firefox 1.5.0.1 での修正
以下のメモリリークは Firefox 1.5.0.1 で修正済みです。
- Bug 316775 - leak when selecting
- Bug 317478 - leaks due to global scope polluter being removed from not enough (?) prototype chains
Gecko 1.8 Branch での修正
以下のメモリリークは Gecko 1.8 branch で修正されます。
- Bug 316775 - leak when selecting
- Bug 317478 - leaks due to global scope polluter being removed from not enough (?) prototype chains
- Bug 319980 - javascript garbage collector not run when supposed to, leading to "memory leak"
- Bug 323454 - [FIX]Don't leak the channel and XMLHttpRequest object if AsyncOpen fails
- Bug 321283 - Using Find causes documents to leak
- Bug 323532 - Leak when using history autocomplete
- Bug 323377 - Lots of leaks in nsInternetSearchService
Fixes on the Gecko 1.8 branch will be included in future Firefox releases from that branch, such as Firefox 2.0. These fixes may also be included in future Firefox 1.5.x releases.
Gecko 1.8 branch での修正は Firefox 2.0 のような将来のブランチからのリリースに含まれます。これらの修正は、将来の Firefox 1.5.x にも含まれるかもしれません。
Trunk での修正
以下のメモリリークバグは trunk で修正されます:
- Bug 241518 - calling addEventListener with a closure holding a content node leaks the document
- Bug 315708 - Should release found link and current window object from nsTypeAheadFind.cpp
- Bug 315708 - Should release found link and current window object from nsTypeAheadFind.cpp
- Bug 315951 - unknown content type dialog leaks domwindow
- Bug 316775 - leak when selecting
- Bug 317478 - leaks due to global scope polluter being removed from not enough (?) prototype chains
- Bug 319980 - javascript garbage collector not run when supposed to, leading to "memory leak"
- Bug 320211 - parser-related leak when loading DOM inspector in Firefox
- Bug 321040 - observer service should remove null weak references from observer lists when enumerating
- Bug 321283 - using Find causes documents to leak
- Bug 323377 - Lots of leaks in nsInternetSearchService
- Bug 323441 - Memory leak if a site sets location and then document.writes (e.g. when visiting www.economist.com)
- Bug 323454 - [FIX]Don't leak the channel and XMLHttpRequest object if AsyncOpen fails
- Bug 323532 - [FIX] Leak when using history autocomplete
- Bug 323534 - createTreeWalker can cause leaks due to cycles created by closures
- Bug 325305 - minor memory leak in CERT_FindCertByNameString
- Bug 326491 - Leaked observer service leaks things on shutdown
- Bug 327670 - Memory leak in MarkOutOfFlowChild
- Bug 330649 - leak nsContentShellInfo objects
- Bug 331706 - Leak when scrolling
The trunk is where bleeding edge Mozilla development takes place. Fixes on the trunk will be included in Firefox 3.0, and may be included in future Firefox 1.5.x and 2.0 releases.
trunk は Mozilla の開発が行われる最前線です。trunk での修正は Firefox 3.0 に含まれます。Firefox 1.5 と Firefox 2.0 にも含まれるかもしれません。
既知のリークを起こす拡張機能
The following extensions are known to have memory leaks:
以下の拡張機能はメモリリークを起こすことが知られています
修正済み
- Adblock 0.5.3.042
- NoScript 1.1.3.9 [Bug 324817]
- Search Keys 0.7.3 [Changelog]
- Thumbs 0.6.2 [Changelog]
Not Fixed IE Tab 1.0.7 [Bug 324793] Session Saver 0.2.1.031 [Bug 324864] ForecastFox 0.8.5 [Bug 326258]
未修正
- AdBlock Plus 0.6.1.2 [Bug 332671]
- IE Tab 1.0.7 [Bug 324793]
- Session Saver 0.2.1.031 [Bug 324864]
- ForecastFox 0.8.5 [Bug 326258]
Two for the Price of One The combination of Flashgot & Adblock Filterset.G Updater is known to cause leaks [Bug 324586]
組み合わせ
Flashgot と Adblock Filterset.G Updater の組み合わせはリークを起こすことが知られています [Bug 324586]。
協力するには?
他の人を助ける
If you know anyone who is having problems related to Firefox memory usage, show them this thread. New information will be posted here regularly, so it is the best place to come to for answers.
もし誰かが Fireofx のメモリリークに関する問題で困っていたら、このスレッドを見せてください。新しい情報が定期的に投稿されるので、答えを得るための最適な場所です。
メモリリーク検出ツール
David Baron recently wrote a tool that testers can use to help reduce memory leaks in Firefox. If you are using a development version of Firefox (not Firefox 1.5), see his Please file good memory leak bugs weblog post for more information about this tool.
David Baron が最近、テスターが Firefox でメモリリークを削減するときに効果のあるツールを開発しました。もし、Firefox の開発バージョン (Firefox 1.5 ではない) を利用しているなら、このツールの詳細に関しては彼のウェブログ投稿 Please file good memory leak bugs を参照してください。
リークではないもの
Firefox のメモリ使用量はいつも元に戻るわけではない
This is generally not an issue, and does not represent a memory leak. Why? When Firefox is finished with memory, it releases it to its heap. However, operating system reports this memory as being in use, even though Firefox is not using it for anything.
これは一般的には問題ではなく、メモリリークを示すものではありません。なぜでしょうか? Firefox がメモリを使用しなくなったとき、それはヒープに戻されます。しかし、オペレーティングシステムは Firefox がそれをもう使わない場合でもこのメモリを使用中であるものとして報告します。
A common symptom of this is the amount of memory used by Firefox going up, but not coming down - instead staying constant.
このことによる共通の症状は、Firefox によって使用されるメモリの使用量は増えることはあっても減ることは無く、同じ量をキープするということです。
大きな画像は圧縮されない
When Firefox displays images it decompresses them. When combined with memory cache and Fast Back/Forward (bfcache), this can cause pages with large or many images to make the browser use a lot of memory. This is not a leak, because when the memory is not required it gets released to the heap.
Firefox は画像を表示するとき、それを伸張します。メモリキャッシュと高速 Back/Forward (bfcache) を組み合わせると、大きな、あるいは大量の画像を含むページに対してブラウザが大量のメモリを使用することになります。これはリークではありません。なぜなら、メモリが必要でなくなったときにはヒープに返されるからです。
翻訳
この記事にリンクしているページ < >
- [1803] http://gmt-24.net
- [177] http://www.umurausu.info/blog/archives/001167.html
- [75] http://blog.mintclothes.com/article/13223698.html
- [62] http://beau.g-com.ne.jp/mon-extension-memo06_08-2.html
- [56] http://firefox.geckodev.org/index.php?メモリ消費
- [42] http://2hz.org/akebia/item/103
- [11] http://nyan.co.uk/akebia/item/103
- [10] http://see-take.blogspot.jp/2009/12/firefox.html
- [10] https://gmt-24.net
- [8] http://okwave.jp/qa/q2854406.html
- [7] http://oshiete.goo.ne.jp/qa/3972077.html
- [4] http://blogs.yahoo.co.jp/memo_jane/28122651.html
- [3] http://okwave.jp/qa/q3972077.html
- [3] http://oshiete.goo.ne.jp/qa/2854406.html?from=rfqa_no
- [2] http://blog.f99aq8ove.net/archive/2006/04/1145185247.html
- [2] http://see-take.blogspot.jp/2009/12/firefox.html?m=1
- [2] http://soudan1.biglobe.ne.jp/qa2210185.html
- [2] http://yoosee.net/d/tag/rss/







