Thunderbird:Testing:Memory Usage Problems: Difference between revisions

(add server side filters)
m (add Cloud-delivered protection as unresolved issue)
 
(48 intermediate revisions by the same user not shown)
Line 1: Line 1:
__TOC__
__TOC__
Slowness or high memory usage in Thunderbird can be frustrating.  
'''This article is for users with ALL types of performance issues, not just memory.'''


'''To fix slowness, you must do some investigation to eliminate impacts that may be coming from <u>your</u> environment, because Thunderbird can be impacted by CPU, memory and disk activity from other sources. Multiple possible causes are listed below, so please investigate the full list - which is simple when done one step at a time.'''  
Thunderbird performance (slowness) can be affected by CPU, memory and disk activity from many sources. You are likely frustrated, so the steps are simplified to be clear and easy to follow. '''Please step through the full list below to have the best possible chance of success.'''


= Diagnosis Steps  =
Note this document focuses on identifying potential causes for your issues without creating a new data profile, because creating a new profile can create its own set of issues.
'''Before you begin diagnosing''':
* '''Some steps are <u>temporary</u> *tests*, not a suggestion for you to forever disable a feature.''' <u>Note, all steps are essential to a full diagnosis</u>, so please do not to skip any steps, especially disabling antivirus. 
* '''Do not delete files.''' "Bad files" can help developers solve problems. Please rename or move files instead of deleting.


'''After diagnosing - Fully describe your problem, clearly in just a few words, in a [https://support.mozilla.org/products/thunderbird support forum], [[Thunderbird:Testing:Memory_Usage_Problems#References|existing bug]] or [https://bugzilla.mozilla.org/enter_bug.cgi?product=Thunderbird&format=guided new bug report] and ...:
= Diagnosis =
* use numbers to describe quantities and amounts, for example cpu percentage, memory size, numbers of folders and messages <small>(not words like fast/slow, small/large)</small>
== Diagnosis Introduction ==
* precisely state when the behavior occurs (startup, shutdown, or "normal operation"), and every step in the process to reproduce the problem
* '''Do just one or two steps at a time, then evaluate before doing more steps. Document the results and step number as you go. Then you know which item(s) helped and did not, in case you have trouble in the future or to post in your support request.'''
* cite data - which step numbers below help and don't help, [[Thunderbird:Testing:Memory_Usage_Problems#References|bug numbers]], URL of support topic
** Write down '''Numbers''' for memory, cpu, time duration, folders, messages - not vague words like fast, slow, small, large.
* list account types (imap, pop, rss, etc) from Help | Troubleshooting
** State precisely <u>when</u> the behavior occurs (startup, shutdown, etc"), and <u>every step</u> (action, menu click, character typed to reproduce the problem.
* give Thunderbird version number from Help | About
** Document [[Thunderbird:Testing:Memory_Usage_Problems#References|bug numbers]], URLs of postings and references used.
** Screen shots can be helpful.
* Steps are <u>temporary</u> *tests*, not a request for you to forever disable a feature. Disabling antivirus software for example need not be permanent.
* '''Do not delete files'''. Instead, rename or move files because we may need "bad files" later for developers to examine.


'''Steps'''
== Diagnosis Steps ==
 
Did you check the items above in [[#Diagnosis Introduction|Diagnosis Introduction]]?
# Are you using the newest Thunderbird? (do Help | About | Check for Updates, or visit [http://getthunderbird.com/ GetThunderbird])
# Are you using the newest Thunderbird? <small>Check Help > About in Thunderbird to see what channel and version you are running. Then visit https://thunderbird.net/download to see what version is available for your channel. NOTE:most user are on the "esr" channel, not "release". Also check the [https://www.thunderbird.net/system-requirements/ current System Requirements] to see whether your OS is supported.</small>
#Start Thunderbird in [https://support.mozilla.org/en-US/kb/safe-mode Safe Mode (instructions)]. If Thunderbird safe mode helps then visit Tools | Add-ons | Extensions and determine which add-on might be causing the problem by disabling/enabling individual add-ons and...
#Start Thunderbird in [https://support.mozilla.org/kb/troubleshoot-mode-thunderbird Troubleshoot Mode]. If it helped then start in normal mode and if the problem returned:<small>
#*Is add-on in the list of [[#Other_Software|Problem Extensions]]?  <small>Lightning /calendar is an example. Ref: {{bug|441710}}, [https://bugzilla.mozilla.org/buglist.cgi?type1-0-0=substring;list_id=3196459;field0-0-0=short_desc;bug_severity=blocker;bug_severity=critical;bug_severity=major;bug_severity=normal;bug_severity=enhancement;type0-0-1=substring;field0-0-1=keywords;type1-0-1=allwordssubstr;resolution=---;classification=Client%20Software;classification=Components;query_format=advanced;bug_status=NEW;bug_status=ASSIGNED;bug_status=REOPENED;value0-0-1=perf;type0-0-0=anywordssubstr;value0-0-0=slow;field1-0-0=short_desc;product=Calendar;field1-0-1=short_desc confirmed calendar perf bugs]</small>
#*Visit Add-ons and Themes - disable two or more extensions, themes or language packs at a time to determine which might be causing the problem. Are any in the [[#Other_Software|list of Problem Extensions]]?   
#*Contact the add-on author, and report the problem add-on at [https://support.mozilla.org/products/thunderbird SUMO support site].
#*Contact the '''author''' of suspected bad add-ons using their support website or email. </small>
#Is Thunderbird better with OS started in safe modeInstructions: [https://support.microsoft.com/en-us/help/12376/windows-10-start-your-pc-in-safe-mode win10], [https://support.microsoft.com/en-us/help/17076/windows-8-startup-settings-safe-mode win8], [https://support.microsoft.com/en-us/help/17419/windows-7-advanced-startup-options-safe-mode#start-computer-safe-mode=windows-7 win7], [https://support.apple.com/kb/PH25617?locale=en_US MacOS]. If performance is improved in safe mode, then  
#'''Start OS in safe mode. Instructions: [https://support.microsoft.com/en-us/help/12376/windows-10-start-your-pc-in-safe-mode win11+win10], [https://answers.microsoft.com/en-us/windows/forum/all/how-to-boot-windows-7-in-safe-mode/0216561f-4e12-47d6-8637-85fd98469f01 win7], [https://support.apple.com/kb/PH25617?locale=en_US MacOS]. If performance is improved in safe mode, then'''<small>
#* check that you have the newest version of AV/firewall software, and check with vendor's support site
#* test with antivirus disabled or removed - because we constantly see reports of antivirus causing slowness, and disabling isn't always reliable. Check [[Thunderbird:Testing:Antivirus Related Performance Issues|AV performance issues]] for examples for your software, including [[Thunderbird:Testing:Antivirus_Related_Performance_Issues#Defender_aka_Microsoft_Windows_Defender_aka_%22Antimalware_Service_Executable%22_(ASE)_aka_MsMpEng.exe|Microsoft Defender]]
#* test with antivirus disabled or removed (because disabling isn't always reliable). See also [[Thunderbird:Testing:Antivirus Related Performance Issues|AV performance issues]] for settings and information which may help.
#* test with firewall disabled or removed [https://support.mozilla.org/en-US/questions/1133857 Ad-Aware example]
#* on Windows, especially Windows 10, try disabling MS-Windows Search (see next numbered item below)
#* check for software loaded at boot time as a possible cause
#* test with firewall disabled or removed <small>[https://support.mozilla.org/en-US/questions/1133857 Ad-Aware example]</small>
#* run only one antivirus, one firewall, one malware (never multiples of each - more is not better)
#* any software loaded at boot time is a possible cause
#* on macOS, try with [https://support.apple.com/kb/PH25607 Time Machine disabled]
#*run only one antivirus, one firewall, one malware (never multiples of each - more is not better)
#* check for newer version of AV/firewall software, and check with vendor's support site for problem reports </small>
#*on Mac, try with [https://support.apple.com/kb/PH25607 Time Machine disabled]
# Do you see "Unresponsive Script" or "Not Responding"?  Is Thunderbird excluded in your [[Thunderbird:Testing:Antivirus Related Performance Issues|antivirus software]]?
#*uninstall Thunderbird, '''DELETE''' the Thunderbird '''PROGRAM''' directory (not data directory), [https://www.mozilla.org/thunderbird/ download] and reinstall, and retest Thunderbird. <small>If using beta get it from [http://www.mozilla.org/thunderbird/channel/ channels page].</small> 
# Has a proxy ever been defined, and is it working correctly or was the proxy removed?  (A proxy can cause "Unresponsive script")
#Are any of these indexing methods enabled:
#Does turning off the status bar in View > Toolbars help improve performance?
#* MS-Windows Integrated Search in Thunderbird settings, test disable at Tools|Options|Advanced|General|System Integration|Allow Windows Search [https://bugzilla.mozilla.org/show_bug.cgi?id=1294985#c9], [http://forums.mozillazine.org/viewtopic.php?p=14787494&sid=65155af350753b1b533816f9aa186ec2#p14787494], [http://forums.mozillazine.org/viewtopic.php?f=39&t=2998289&sid=b7f14103cb12448f427da681a0ba45c8&p=14571029#p14571029], [http://groups.google.com/group/mozilla.support.thunderbird/browse_thread/thread/93ab6d849bd87918/db493affc19d6520?lnk=gst&q=%22TB+3.1+Freezes%22+%22also+found%22#db493affc19d6520], [http://forums.mozillazine.org/viewtopic.php?p=14283935&#p14283935], [http://forums.mozillazine.org/viewtopic.php?f=39&t=2957945&p=14430851#p14430851], [https://support.mozilla.org/en-US/questions/1102258], [https://support.mozilla.org/en-US/questions/1154444]
# '''If you have gmail accounts, is problem gone after [http://kb.mozillazine.org/Using_Gmail_with_Thunderbird_and_Mozilla_Suite#Subscriptions unsubscribing the "All Mail" folder]?'''
#* MS-Windows Search service [http://forums.mozillazine.org/viewtopic.php?p=13750937#p13750937 try disabling], especially with [https://bugzilla.mozilla.org/show_bug.cgi?id=1262517 Windows 10], {{bug|1436278}}, or if you moved Thunderbird profile or account from the default location [https://support.mozilla.org/en-US/questions/1117146?page=2#answer-885401], [https://bugzilla.mozilla.org/show_bug.cgi?id=1083233], [https://bugzilla.mozilla.org/show_bug.cgi?id=1283908]. If that helps, you can [http://www.sevenforums.com/general-discussion/215354-how-prevent-showing-search-results-drive-folder.html#post1805728 disable Windows indexing for your Thunderbird data].
# Is "Unified Folders" enabled in "Folder Modes" at the top of the folder pane?  Or are have you created virtual folders?  These iterate over multiple folders and can affect responsiveness.
#* Mac Spotlight Integration, Thunderbird setting, at Tools|Options|Advanced|General|System Integration|
# '''Folders should be well maintained'''. Help > Troubleshooting Information lists large folders. Folders may also be broken, which can be fixed with right+click on folder, Properties > Repair. Signs of problems and common maintenance steps:<small>
#If you have gmail accounts, is problem gone after [http://kb.mozillazine.org/Using_Gmail_with_Thunderbird_and_Mozilla_Suite#Subscriptions unsubscribing the "All Mail" folder]?
#* Do you see high memory or delay for a specific folder when opening, deleting or archiving, moving a message?
# On Windows, did you move the Thunderbird profile or any Thunderbird account from the default location "[https://www.nextofwindows.com/how-to-access-user-profiles-appdata-folder-the-easiest-way-in-windows-7 %APPDATA%]" to a different Windows directoryIf yes, then MS-Windows Search will [https://bugzilla.mozilla.org/show_bug.cgi?id=1083233 attempt to index all Thunderbird disk activity]. [http://www.sevenforums.com/general-discussion/215354-how-prevent-showing-search-results-drive-folder.html#post1805728 Disable Windows indexing for your Thunderbird data].
#* Do any folders lose their sort order or column settings?
#If [[#Memory Overview|Thunderbird memory usage is more than expected]] by hundreds of megabytes (MB), then perhaps one or more folders (internally a database) are not being closed, or some other bug. Please :
#* Do you empty Trash and Spam (junk) folders on a regular basis? '''These should not be larger than a few thousand messages, and you should not use these folders for long term storage. Does performance improve if you empty them?''' An alternative to manual emptying is setting automatic retention value in Folder Properties. Also see [https://support.mozilla.org/en-US/questions/1226726, [https://support.mozilla.org/en-US/kb/menu-reference#w_empty-trash File menu], {{bug|1192827}}
#*Get a diagnostic log of Thunderbird activity with '''MSGDB:5,timestamp''' using [[MailNews:Logging|logging instructions]]. <!-- You must install and use [ftp://ftp.mozilla.org/pub/thunderbird/nightly/latest-comm-1.9.2/ a 3.1beta build appropriate to your OS] [http://s3.mozillamessaging.com/build/try-server/list.html tryserver build] appropriate to your platform that includes ''010-01-14_08:10-bienvenu@nventure.com-1263484981/bienvenu@nventure.com-1263484981-mail-try'' in the name -->
#* Do any Inbox or filtered folders have several thousand messages?  If so, especially for Inbox, consider deleting some messages or moving some to another folder with [https://support.mozilla.org/en-US/kb/archived-messages Archive] or some other method.
#*[https://bugzilla.mozilla.org/enter_bug.cgi?product=Thunderbird&format=guided File a bug], then edit the new bug and attach the zipped log file using "Add an attachment".
#* Are [https://support.mozilla.org/en-US/kb/compacting-folders compacts] routinely performedCompact must be automatic or done regularly (at least weekly) using [https://support.mozilla.org/en-US/kb/menu-reference#w_compact-folders manual File > Compact Folders]?</small>
#Does setting Thunderbird to offline mode help, which stops checks for new mail and certain other activity? <small>File | Offline | Work Offline - Work Offline should be "checked".</small>
# Any remote Calendars?<small>
#* Try disabling two or more calendars at a time.  
#* If you have many recurring, never ending calendar appointments, try reducing the time period and number of them. Less likely starting with version 128's fix for {{bug|1844408}}. Examples: [https://www.reddit.com/r/Thunderbird/comments/16c89wo], [https://www.reddit.com/r/Thunderbird/comments/18ypd8r/comment/kgcyox8/]
#* Try setting calendar.caldav.multigetBatchSize > 100 in Settings > Config Editor (100 is default, you must create the preference [https://bugzilla.mozilla.org/show_bug.cgi?id=1543953])</small>
# Does setting preference <code>ui.prefersReducedMotion</code> to '''numeric''' value 1 help in Settings > Config Editor??  
# Does File > Offline > Work Offline (with Work Offline now "checked") help, which stops checks for new mail, news and RSS feeds.<small>
#* If Offline did not help, do File | Offline | Work Offline - Work Offline should now be "unchecked".
#* If Offline did not help, do File | Offline | Work Offline - Work Offline should now be "unchecked".
#* If Offline helped, then go back Online (disable Offline) and ...:
#* If Offline did help, then go back Online (disable Offline) and ...:
#**Does disabling interval checks for new mail help? (Account Settings | Server Settings | uncheck "Check for new messages every N minutes").  If it helps, then ... is a low value (1-3 minutes) specified for checking for new mail? <small>Does increasing it to 5-10 minutes help?</small>
#** Does disabling interval checks for new mail help? (Account Settings | Server Settings | uncheck "Check for new messages every N minutes").  If it helps, then ... is a low value (1-3 minutes) specified for checking for new mail? Does increasing it to 5-10 minutes help?
#**Is a low value (1-3 minutes) specified for draft autosave at Options | Composition | General | Auto Save every N minutes. <small>Does increasing it to 5-10 minutes help?</small>
#**Is a low value (1-3 minutes) specified for draft autosave at Options | Composition | General | Auto Save every N minutes. Does increasing to 5-10 minutes help?
#**What type of mail account is this (imap or pop), and how many other accounts are the same type?
#**What type of mail account is this (imap or pop), and how many other accounts are the same type?
#**Are you absolutely certain that antivirus software is not to blame?
#**Are you absolutely certain that antivirus software is not to blame?
#**Are any non-Inbox IMAP folders configured to check for new messages via "always check this folder" in properties?  Or is hidden preference mail.check_all_imap_folders_for_new set to true? These increase load on both Thunderbird and the mail server. <small>{{Bug|729504}}</small>
#**Are any non-Inbox IMAP folders configured to check for new messages via "always check this folder" in properties?  Or is hidden preference mail.check_all_imap_folders_for_new set to true? These increase load on both Thunderbird and the mail server. {{Bug|729504}}</small>
#Does problem resolve by disabling Global Search indexing? <small>Tools|Options|Advanced|General| uncheck Enable Global Search and Indexer (linux: Edit|Preferences|Advanced|...  Mac: cmd , advanced tab) '''and restart Thunderbird.'''  (note, searching is now disabled) </small>
#Does problem resolve by disabling Global Search indexing? <small>Tools|Options|Advanced|General| uncheck Enable Global Search and Indexer (linux: Edit|Preferences|Advanced|...  Mac: cmd , advanced tab) '''and restart Thunderbird.'''  (note, disabling indexing also disables global searching - ctrl+K)
#* If problem did not go away, or to recheck indexing behavior, enable the checkbox again and restart Thunderbird.
#* If problem did not go away, or to recheck indexing behavior, enable the checkbox again and restart Thunderbird.
#* If the problem did go away - did Thunderbird have extremely high disk IO, seem to be stuck on indexing per Tools|Activity Manager, or is global-messages-db.sqlite (file used for global search) in your [http://kb.mozillazine.org/Profile_folder_-_Thunderbird profile folder] too big? <small>Rule of thumb - the file should not be more than 10-20% of the combined size of all messages in directories Mail and ImapMail.</small>
#* If the problem did go away - did Thunderbird have extremely high disk IO, seem to be stuck on indexing per Tools|Activity Manager, or is global-messages-db.sqlite (file used for global search) in your [http://kb.mozillazine.org/Profile_folder_-_Thunderbird profile folder] too big? Rule of thumb - the file should not be more than 10-20% of the combined size of all messages in directories Mail and ImapMail.
#**Rename global-messages-db.sqlite (to keep it for later diagnosis), enable the Global Search checkbox, and restart Thunderbird. global-messages-db.sqlite will rebuild and your system load may be high until all your messages are reindexed, but your messages should not redownload from the server.
#**Rename global-messages-db.sqlite (to keep it for later diagnosis), enable the Global Search checkbox, and restart Thunderbird. global-messages-db.sqlite will rebuild and your system load may be high until all your messages are reindexed, but your messages should not redownload from the server.
#**Please [https://bugzilla.mozilla.org/enter_bug.cgi?product=Thunderbird&format=guided file a bug] about your problem.  
#** Please [https://bugzilla.mozilla.org/enter_bug.cgi?product=Thunderbird&format=guided file a bug] about your problem.</small>
#Are any folders greater than 2GB in size?  <small>Large folder indexes take more memory and time to load. Use Properties by right+clicking folder. Also Help | Troubleshooting lists large folders.</small>
# Are any of these indexing methods enabled in Thunderbird:<small>
#Do you have thousands of contacts in your address book? <small>(possible related issues: google contacts add-on], [http://hogiblog.blogspot.com/2012/01/reducing-memory-usage-of-google.html?showComment=1333621724776#comment-c8055257360225747824]</small>
#* MS-Windows Integrated Search enable/disable at Tools > Settings > General > System Integration > Allow Windows Search [https://bugzilla.mozilla.org/show_bug.cgi?id=1294985#c9], [http://forums.mozillazine.org/viewtopic.php?p=14787494&sid=65155af350753b1b533816f9aa186ec2#p14787494], [http://forums.mozillazine.org/viewtopic.php?f=39&t=2998289&sid=b7f14103cb12448f427da681a0ba45c8&p=14571029#p14571029], [http://groups.google.com/group/mozilla.support.thunderbird/browse_thread/thread/93ab6d849bd87918/db493affc19d6520?lnk=gst&q=%22TB+3.1+Freezes%22+%22also+found%22#db493affc19d6520], [http://forums.mozillazine.org/viewtopic.php?p=14283935&#p14283935], [http://forums.mozillazine.org/viewtopic.php?f=39&t=2957945&p=14430851#p14430851], [https://support.mozilla.org/en-US/questions/1102258], [https://support.mozilla.org/en-US/questions/1154444], [https://connect.mozilla.org/t5/discussions/thunderbird-is-extremely-slow-after-the-new-ui-update-115-4-2/m-p/49791/highlight/true#M17793]
<!-- fixed in 76 #Are you using chat? {{bug|1575214}} -->
#* MS-Windows Search service [http://forums.mozillazine.org/viewtopic.php?p=13750937#p13750937 try disabling], especially with [https://bugzilla.mozilla.org/show_bug.cgi?id=1262517 Windows 10], {{bug|1436278}}, or if you moved Thunderbird profile or account from the default location [https://support.mozilla.org/en-US/questions/1117146?page=2#answer-885401], [https://bugzilla.mozilla.org/show_bug.cgi?id=1083233], [https://bugzilla.mozilla.org/show_bug.cgi?id=1283908]. If that helps, you can [http://www.sevenforums.com/general-discussion/215354-how-prevent-showing-search-results-drive-folder.html#post1805728 disable Windows indexing for your Thunderbird data].
#Do you use server side message filters to place messages in folders?
#* Mac Spotlight at Thunderbird > Settings > System Integration</small>
#If error message indicates a script problem (ex. "Unresponsive Script"), please set javascript.options.mem.log to true and provide a couple log entries of the form <small> CC(T+1186.6) collected: 131 (131 waiting for GC), suspected: 98, duration: 274 ms.</small>
# If you see high CPU usage in Windows taskmgr, Mac activity manager, or linux top, sort the CPU column (details tab for Windows) to see if [http://forums.mozillazine.org/viewtopic.php?p=12641015#p12641015 mozilla updater.exe], Window's update or some other process is hogging CPU.
# Has a proxy ever been defined, and is it working correctly or was the proxy removed?  (A proxy can cause "Unresponsive script")
# If you have newsgroup accounts, then in Account Settings > Server Settings try disabling "Check for new messages at startup". <small>If problem is gone you may be seeing [https://groups.google.com/d/msg/mozilla.support.thunderbird/_6yvdz0de9g/9KJVVBqIAwAJ many newsgroups with many unread messages], {{bug|185634}}, {{Bug|541001}}, or [http://forums.mozillazine.org/viewtopic.php?p=9900989&sid=e32e1e42a3ddcac8c8605a1cbea6b2e8#p9900989].</small>
#If using high CPU, check taskmgr to see if [http://forums.mozillazine.org/viewtopic.php?p=12641015#p12641015 mozilla updater.exe] or Window's update process is running.
# If you have RSS feed reader accounts:
#Is your '''[https://support.mozilla.org/en-US/kb/profiles-tb Thunderbird profile]''' or any part of Thunderbird <u>not</u> on a local hard drive? If yes, does it preform better when it is moved to the local disk?
#* Is "Automatically create tags from feed category names" enabled? [https://bugzilla.mozilla.org/show_bug.cgi?id=1342054]
#* in cloud storage?  (cloud storage is not supported)
#* In Account Settings > Server Settings disable "Check for new messages at startup". <small>If problem is gone you may be seeing {{Bug|551144}} (fixed in version 13).</small>
#* on USB drive? USB is slower compared to a local disk. Some types or manufacturers are terrible. [http://portableapps.com/shop/hardware Make sure you've got a good one.]
# Is your '''[https://support.mozilla.org/en-US/kb/profiles-tb Thunderbird profile]''' or any part of Thunderbird <u>not</u> on a local disk? If not local, does it preform better when it is moved to the local disk?<small>
#* on network drive? eg SMB, NFS, AFS, samba  
#* Cloud storage is not supported.
#* SSD?  (sounds silly, but some SSD have been reported to be slow)
#* USB drives are slower compared to a local disk. Some types or manufacturers are terrible. [http://portableapps.com/shop/hardware Make sure you've got a good one.]
#If you suspect slow disk or high disk activity
#* network drive (file share) can be slow due to network transmission or slow media (SMB, NFS, AFS, samba)</small>
# Consider slow disk or high disk activity<small>
#* check the previous item (NFS, etc)
#* check the previous item (NFS, etc)
#* in Windows you want at least 20% free disk space and do defrags
#* SSD? (sounds silly but some SSD are slow, plus heavy paging or other IO will kill a SSD throughput)
#* check whether any OS or application update process is in progress, for example [https://support.mozilla.org/en-US/questions/1226979 Windows update]
#* in Windows you want at least 20% free disk space, and for spinning disks do periodic defrags
#If you have newsgroup accounts, then in Account Settings|Server Settings disable "Check for new messages at startup". <small>If problem is gone you may be seeing [https://groups.google.com/d/msg/mozilla.support.thunderbird/_6yvdz0de9g/9KJVVBqIAwAJ many newsgroups with many unread messages], {{bug|185634}}, {{Bug|541001}}, or [http://forums.mozillazine.org/viewtopic.php?p=9900989&sid=e32e1e42a3ddcac8c8605a1cbea6b2e8#p9900989].</small>  
#* check whether any OS or application update process is in progress, for example [https://support.mozilla.org/en-US/questions/1226979 Windows update]</small>
#If you have RSS news reader account, in Account Settings|Server Settings disable "Check for new messages at startup". <small>If problem is gone you may be seeing something like {{Bug|551144}} (fixed in version 13).</small>  
#Check activity in Tools > Activity Manager to see if a folder or ISP (mail provider) is being lame. Examples: Yahoo and Gmail (and others) may cause message folders to be redownloaded. <small>[https://support.mozilla.org/en-US/questions/1202731 slow downloading email (Centurylink)]</small>
# Any Outlook or Hotmail accounts? {{Bug|1355885}}
#Common resource requirements and hardware checks:<small>
# Is filter logging enabled at Tools > Filters?  (large logs cause high overhead)
#* Does your system have the [https://www.thunderbird.net/system-requirements/ minimum hardware requirements] for the current version, especially [[#Memory_Overview|memory]]? NOTE: minimum recommended size may not be sufficient for Thunderbird and <u>your</u> system's workload. Paging, even if you have a fast SSD, will kill performance - check activity manager, activity monitor or top.
# Is panacea.dat cache file in [https://support.mozilla.org/en-US/kb/profiles-tb your profile] too big? <small>(>10MB for most people is probably too big. Rule of thumb for panacea size with thunderbird stopped: #folders*0.3k. See [https://bugzilla.mozilla.org/show_bug.cgi?id=65086#c34 bug 65086], {{bug|1084276}})</small>
#* Consider hardware problems - run checks against disks, SSD, memory. We get several reports a year, for example [http://forums.mozillazine.org/viewtopic.php?p=14414969#p14414969], [https://support.mozilla.org/en-US/questions/1090651]
#Common resource requirements/maintenance steps:
#* Check BIOS settings: [[http://forums.mozillazine.org/viewtopic.php?p=14773844#p14773844 hanging when sending messages if VT-x is enabled in BIOS]]
#* Do you have the [https://www.mozilla.org/en-US/thunderbird/52.0/system-requirements/ minimum hardware requirements], and [[#Memory_Overview|enough memory]]? <small>Note, even having the minimum or recommended sized system may not be sufficient for <u>your</u> workload.</small>
#* If Thunderbird is running in a VM (virtual machine), is it better when not virtualized?</small>
#* Consider hardware or virtualization problems [http://forums.mozillazine.org/viewtopic.php?p=14414969#p14414969], [https://support.mozilla.org/en-US/questions/1090651]
# Lower probability items:<small>
#** If Thunderbird is running in a VM (virtual machine), does it run much better when running not virtualized?
#* Does it help to set <code>accessibility.force_disabled</code> to '''numeric''' 1 in Settings > Config Editor?
#* Are your folders well maintained, "too large", or perhaps broken:
#* Any Outlook or Hotmail accounts? {{Bug|1355885}}
#** Do you see high memory or long delay when opening a specific folderOr when moving message to a specific folder?
#* Is filter logging enabled at Tools > Filters(look for filterlog.html files - large logs cause high overhead)
#** Do any folders lose their sort order or column settings?
#* Do you use server side message filters to place messages in folders? {{Bug|589310}}
#** Do you empty trash and junk on a regular basis? Large folders will cause performance issues [https://support.mozilla.org/en-US/questions/1226726], and you should not use these folders for long term storage. Does performance improve if you empty them? (see [https://support.mozilla.org/en-US/kb/menu-reference#w_empty-trash File menu])
#* Do you have thousands of contacts in your address book? possible related issues:  google contacts add-on], [http://hogiblog.blogspot.com/2012/01/reducing-memory-usage-of-google.html?showComment=1333621724776#comment-c8055257360225747824]
#** Do any Inbox or filtered folders have several thousand messages?  If so, especially for Inbox, consider moving some messages to another folder. Perhaps use [https://support.mozilla.org/en-US/kb/archived-messages Archive].
#* clear cache at Settings > General > Disk Space > "Clear Now" and Help > Troubleshooting Information > "Clear startup cache..."
#** If you are using a version prior to 5, do you regularly (daily or weekly) [https://support.mozilla.org/en-US/kb/menu-reference#w_compact-folders File > Compact Folders]?
#* On Linux? A package might be causing the problem [https://www.reddit.com/r/Thunderbird/comments/183tc5h/suddenly_slow_thunderbird_on_linux_gentoo_how_to/]. Are you running an old version? Consider updating. [http://forums.mozillazine.org/viewtopic.php?p=13605851#p13605851 hangs on Ubuntu 10.04, 14.04 works]
#** Check BIOS settings: [[http://forums.mozillazine.org/viewtopic.php?f=39&t=3033410 hanging when sending messages if VT-x is enabled in BIOS]]
#* On macOS, try disabling Thunderbird's access to Mac Contacts in Mac System Settings > Privacy & Security > Contacts.
#Check if ISP (mail provider) is being lame. Examples ... Yahoo and Gmail (and other suppliers) sometimes cause message folders to be redownloaded.  [https://support.mozilla.org/en-US/questions/1202731 slow downloading email (Centurylink)]
#* On Windows, did you move the Thunderbird profile directory or any Thunderbird account from the default location "[https://www.nextofwindows.com/how-to-access-user-profiles-appdata-folder-the-easiest-way-in-windows-7 %APPDATA%]"?  If yes, then MS-Windows Search will [https://bugzilla.mozilla.org/show_bug.cgi?id=1083233 attempt to index all Thunderbird disk activity]. [http://www.sevenforums.com/general-discussion/215354-how-prevent-showing-search-results-drive-folder.html#post1805728 Disable Windows indexing for your Thunderbird data].
#If you are running an old version of linux, consider updating. [http://forums.mozillazine.org/viewtopic.php?p=13605851#p13605851 hangs on Ubuntu 10.04, 14.04 works]
#* uninstall Thunderbird, then '''DELETE''' the Thunderbird '''PROGRAM''' directory (not the data directory), then [https://www.mozilla.org/thunderbird/ download], reinstall, and retest Thunderbird. If using beta get it from [https://www.thunderbird.net/download/beta/ channels].
#If a bug report in [[#References|References]] below matches your problem, please add yourself to the bug report. Add a details about your situation only if the information varies from data cited in previous bug comments.
#*If [[#Memory Overview|Thunderbird memory usage is more than 1.5GB or more]] then folders may be corrupted or are not being closed. Please get a diagnostic log of Thunderbird activity with '''MSGDB:5,timestamp''' using [[MailNews:Logging|logging instructions]], then [https://bugzilla.mozilla.org/enter_bug.cgi?product=Thunderbird&format=guided file a bug], and attach the zipped log file using "Add an attachment".</small>
#If you do not find an existing bug report and still see a problem ...
#If you have a reportable problem or question, please use the next section below.
 
<!-- not a factor since version 91 # Is panacea.dat cache file in [https://support.mozilla.org/en-US/kb/profiles-tb your profile] too big? <small>(>10MB is probably too big. Calculate with thunderbird stopped: is panacea.dat larger than #folders*0.3k? See [https://bugzilla.mozilla.org/show_bug.cgi?id=65086#c34 bug 65086], {{bug|1084276}})</small> -->
 
== Report a problem ==
 
Create a [https://support.mozilla.org/en-US/questions/new/thunderbird/form support request] or [https://bugzilla.mozilla.org/enter_bug.cgi?product=Thunderbird&format=guided new bug report] with
[[#Before starting|information you have collected]]:
 
* '''State that you reviewed this document''', and which step numbers made things better or worse.
* Use '''Numbers''' when referring to amounts of memory, cpu, time duration, folders, messages - not vague ... fast, slow, small, large.
* List account details - types (imap, pop, rss), mail providers (domains), etc. - from "Mail and News Accounts" in Help > Troubleshooting Info.
* '''Number''' of messages in your largest folder.
* Full Thunderbird <u>version number</u> from Help > About, or Help > Troubleshooting Information
* State precisely <u>when</u> the behavior occurs (startup, shutdown, or "normal operation"), and <u>every step</u> (action, menu click, ...) needed to reproduce the problem.
* List what is happening in Tools > Activity Manager.
* State whether your [https://support.mozilla.org/en-US/kb/profiles-where-thunderbird-stores-user-data Thunderbird profile data] is in a non-standard location.


Please [[Thunderbird:Testing:Memory_Usage_Problems#Diagnosis_Steps|give details about your results of doing the list above]] in a support forum or [https://bugzilla.mozilla.org/enter_bug.cgi?product=Thunderbird&format=guided bug report].
Bonus:
<!-- If you are technically inclined, please also add a link to the results of [https://developer.mozilla.org/en-US/docs/Mozilla/Performance/Reporting_a_Thunderbird_Performance_Problem_with_G profiling the problem].
* Any bug report(s) match your problem? See [[#References|topmost entries in the "Unresolved bugs" list]], and open [https://mzl.la/3P82Lyd memory] and [https://mzl.la/3Xg2Bsg performance] bugs.  
-->
* URLs of related postings and references
<!-- Other ways to help:
* Attach any message which demonstrates the issue, saved from Thunderbird as .eml file.
* file bug reports for specific [[#Memory Leaks|Memory Leak]] issues. -->
* '''Screen shots'''.
* URL to a [https://support.mozilla.org/kb/profiling-thunderbird-performance performance profile which you created].


= References  =
= References  =
Line 102: Line 125:


'''Unresolved bugs and references:'''
'''Unresolved bugs and references:'''
* [https://support.mozilla.org/en-US/questions/1492118 Windows Security's "Cloud-delivered protection" causes archive to be slow]
<!-- http://bit.ly/cQowd5 major + critical perf bugs -->
<!-- http://bit.ly/cQowd5 major + critical perf bugs -->
* '''[[Thunderbird:Testing:Antivirus_Related_Performance_Issues#McAfee|McAfee antivirus]] is causing major performance and problems with TB24 (and was with TB17 and TB16). Symptom: slow delete and read, "Unresponsive Script", "(Not Responding)".  [[Thunderbird:Testing:Antivirus_Related_Performance_Issues#McAfee|Solution]]'''
* '''[[Thunderbird:Testing:Antivirus_Related_Performance_Issues#McAfee|McAfee antivirus]] is causing major performance and problems with TB24 (and was with TB17 and TB16). Symptom: slow delete and read, "Unresponsive Script", "(Not Responding)".  [[Thunderbird:Testing:Antivirus_Related_Performance_Issues#McAfee|Solution]]'''
*{{Bug|Bug 1438317}} - "Indexing messages. Determining which messages to index" stuck on local folder never ends. Modest CPU - 7-10%. Error console "Observed header that claims to be gloda indexed but that gloda has never heard of during compaction"
*{{Bug|1342054}} - Large number of tags causes very bad tags preference UI performance, from autotaging RSS feeds with "Automatically create tags from feed category names"
*{{Bug|1438317}} - "Indexing messages. Determining which messages to index" stuck on local folder never ends. Modest CPU - 7-10%. Error console "Observed header that claims to be gloda indexed but that gloda has never heard of during compaction"
*{{Bug|1406653}} - Gloda warning repeated every half-second causing high cpu and slow response. "Observed header that claims to be gloda indexed but that gloda has never heard of during compaction" in error console and "Determining which messages to index""  
*{{Bug|1406653}} - Gloda warning repeated every half-second causing high cpu and slow response. "Observed header that claims to be gloda indexed but that gloda has never heard of during compaction" in error console and "Determining which messages to index""  
*{{Bug|1240722}} - tidybird add-on causes files/folders to be opened and stay open twice - Thunderbird leaks file descriptors (mostly .msf files) like a sieve causing high memory. (no virtual folders)
*{{Bug|1240722}} - tidybird add-on causes files/folders to be opened and stay open twice - Thunderbird leaks file descriptors (mostly .msf files) like a sieve causing high memory. (no virtual folders)
Line 113: Line 138:
*{{bug|563677}} HTML Mail View slow (45++ sec) for pop and local folders - speed up FolderUriForPath (from {{Bug|545126}})
*{{bug|563677}} HTML Mail View slow (45++ sec) for pop and local folders - speed up FolderUriForPath (from {{Bug|545126}})
*{{Bug|487832}} - Thunderbird startup performance issues [meta]
*{{Bug|487832}} - Thunderbird startup performance issues [meta]
*{{Bug 357008}} - (If you have a profile created between version 1.5 and 2.0) Remove obsolete directory address books entries from prefs
* ref: [http://kb.mozillazine.org/Performance_%28Thunderbird%29 Thunderbird Performance knowledge base article]  
* ref: [http://kb.mozillazine.org/Performance_%28Thunderbird%29 Thunderbird Performance knowledge base article]  
* ref: [http://kb.mozillazine.org/Standard_diagnostic_-_Thunderbird Standard diagnostic for Thunderbird knowledge base article ]  
* ref: [http://kb.mozillazine.org/Standard_diagnostic_-_Thunderbird Standard diagnostic for Thunderbird knowledge base article ]  
* ref: {{Bug|480841}} Implement memory reporter for Gloda  
* ref: {{Bug|480841}} Implement memory reporter for Gloda  
* ref: {{Bug|480843}} Implement memory reporter for mailnews
* ref: {{Bug|480843}} Implement memory reporter for mailnews
*Lightning related:
*Lightning related:
**{{Bug|441710}} - Thunderbird freezes/slow for 3-60 seconds caused by calendar/lightning [meta]  
**{{Bug|441710}} - Thunderbird freezes/slow for 3-60 seconds caused by calendar/lightning [meta]  
Line 122: Line 150:
**{{bug|501689}} - Investigate making storage asynchronous // {{bug|462277}} - (calcache) [meta][GSoC 2014] Turn on offline cache by default for new calendars
**{{bug|501689}} - Investigate making storage asynchronous // {{bug|462277}} - (calcache) [meta][GSoC 2014] Turn on offline cache by default for new calendars
**{{bug|498968}} - Create a new, faster storage "storage2" provider
**{{bug|498968}} - Create a new, faster storage "storage2" provider
*[http://tinyurl.com/l7t52zo|larger, less selective list of bugs] inclusive of those cited above
*[http://tinyurl.com/l7t52zo larger, less selective list of bugs] inclusive of those cited above


Bugs fixed but not released.  Typically fixed in unreleased versions (eg. trunk regressions):
Bugs fixed but not released.  Typically fixed in unreleased versions (eg. trunk regressions):
* {{Bug|1502923}} - Thunderbird processing / "Not Responding"  5 to 30 minutes at startup. Also "Unresponsive Script" - Performance issues in unifinder.js
* {{Bug|1502923}} - Thunderbird processing / "Not Responding"  5 to 30 minutes at startup. Also "Unresponsive Script" - Performance issues in unifinder.js


'''Fixed bugs/issues:'''
'''Fixed bugs/Resolved issues:'''


<!-- list updated 2018-04-07 -->
<!-- list updated 2018-04-07 -->
Line 303: Line 331:
Add-ons / Extensions reported to have caused high memory, performance, or other problems:
Add-ons / Extensions reported to have caused high memory, performance, or other problems:


*[https://www.reddit.com/r/Thunderbird/comments/1er8r8k/comment/lk5tdms/ darkreader]
*[https://support.mozilla.org/en-US/questions/1062821 Adblock Plus]
*[https://support.mozilla.org/en-US/questions/1062821 Adblock Plus]
*[http://forums.mozillazine.org/viewtopic.php?p=13773869#p13773869 Cloudmark DesktopOne], [https://support.mozilla.org/en-US/questions/1141111 Cloudmark DesktopOne again]
*[http://forums.mozillazine.org/viewtopic.php?p=13773869#p13773869 Cloudmark DesktopOne], [https://support.mozilla.org/en-US/questions/1141111 Cloudmark DesktopOne again]
Line 317: Line 346:


* ogplanet Game Launcher/npOGPPlugin.dll {{Bug|543082}} slow opening an email on windows
* ogplanet Game Launcher/npOGPPlugin.dll {{Bug|543082}} slow opening an email on windows
*Secunia PSI  
* Secunia PSI  
*THE SHIELD {{bug|542156}}  
* THE SHIELD {{bug|542156}}  
*Eset NOD32 {{Bug|541197}} Repeated attempts to create huge temporary file during message synchronization due to Eset NOD32 causes slow gloda indexing  
* Eset NOD32 {{Bug|541197}} Repeated attempts to create huge temporary file during message synchronization due to Eset NOD32 causes slow gloda indexing  
*F-Prot Antivirus may cause very slow access to mailbox files. See: [[Thunderbird:Testing:Antivirus Related Performance Issues|Antivirus Related Performance Issues]]
* F-Prot Antivirus may cause very slow access to mailbox files. See: [[Thunderbird:Testing:Antivirus Related Performance Issues|Antivirus Related Performance Issues]]
* [[Thunderbird:Testing:Antivirus_Related_Performance_Issues#Microsoft_Windows_Defender_aka_%22Antimalware_Service_Executable%22_(ASE)_aka_MsMpEng.exe|Microsoft Defender]]


Miscellaneous
Miscellaneous
* [https://thunderbirdtweaks.blogspot.com.au/2016/08/windows-10-and-thunderbird-firefox.html PCI express power setting]
* [https://thunderbirdtweaks.blogspot.com.au/2016/08/windows-10-and-thunderbird-firefox.html PCI express power setting]
= Memory Leaks  =
Most people have heard the term 'Memory leaks'. The classic memory leak is a program not releasing some temporarily used memory. If you are interested in helping address memory leaks ...
*Anyone can help find js leaks with Thunderbird started in safe mode. Install the [https://addons.mozilla.org/en-US/thunderbird/addon/2490 Leak Monitor detector add-on], perform a specific function with the leak detector enabled, and then [https://bugzilla.mozilla.org/enter_bug.cgi?product=Thunderbird&format=guided file a bug] with information about what function you performed, and the results of the detector.
*The technically inclined are encouraged to reference [[Performance:Leak Tools]]. Detailed leak analysis using the tools and methods described there will help improve Thunderbird, and your help in filing bugs the results of your findings will be appreciated.


= Terminology =
= Terminology =
Line 338: Line 361:


= References =
= References =
* [https://support.mozilla.org/en-US/kb/profiling-thunderbird-performance Profiling Thunderbird performance]
* [http://kb.mozillazine.org/Performance_-_Thunderbird Thunderbird Performance]
* [http://kb.mozillazine.org/Performance_-_Thunderbird Thunderbird Performance]
* [http://kb.mozillazine.org/Keep_it_working_%28Thunderbird%29#Routine_usage Routine maintenance]
* [http://kb.mozillazine.org/Keep_it_working_%28Thunderbird%29#Routine_usage Routine maintenance]

Latest revision as of 14:23, 12 September 2025

This article is for users with ALL types of performance issues, not just memory.

Thunderbird performance (slowness) can be affected by CPU, memory and disk activity from many sources. You are likely frustrated, so the steps are simplified to be clear and easy to follow. Please step through the full list below to have the best possible chance of success.

Note this document focuses on identifying potential causes for your issues without creating a new data profile, because creating a new profile can create its own set of issues.

Diagnosis

Diagnosis Introduction

  • Do just one or two steps at a time, then evaluate before doing more steps. Document the results and step number as you go. Then you know which item(s) helped and did not, in case you have trouble in the future or to post in your support request.
    • Write down Numbers for memory, cpu, time duration, folders, messages - not vague words like fast, slow, small, large.
    • State precisely when the behavior occurs (startup, shutdown, etc"), and every step (action, menu click, character typed to reproduce the problem.
    • Document bug numbers, URLs of postings and references used.
    • Screen shots can be helpful.
  • Steps are temporary *tests*, not a request for you to forever disable a feature. Disabling antivirus software for example need not be permanent.
  • Do not delete files. Instead, rename or move files because we may need "bad files" later for developers to examine.

Diagnosis Steps

Did you check the items above in Diagnosis Introduction?

  1. Are you using the newest Thunderbird? Check Help > About in Thunderbird to see what channel and version you are running. Then visit https://thunderbird.net/download to see what version is available for your channel. NOTE:most user are on the "esr" channel, not "release". Also check the current System Requirements to see whether your OS is supported.
  2. Start Thunderbird in Troubleshoot Mode. If it helped then start in normal mode and if the problem returned:
    • Visit Add-ons and Themes - disable two or more extensions, themes or language packs at a time to determine which might be causing the problem. Are any in the list of Problem Extensions?
    • Contact the author of suspected bad add-ons using their support website or email.
  3. Start OS in safe mode. Instructions: win11+win10, win7, MacOS. If performance is improved in safe mode, then
    • test with antivirus disabled or removed - because we constantly see reports of antivirus causing slowness, and disabling isn't always reliable. Check AV performance issues for examples for your software, including Microsoft Defender
    • test with firewall disabled or removed Ad-Aware example
    • check for software loaded at boot time as a possible cause
    • run only one antivirus, one firewall, one malware (never multiples of each - more is not better)
    • on macOS, try with Time Machine disabled
    • check for newer version of AV/firewall software, and check with vendor's support site for problem reports
  4. Do you see "Unresponsive Script" or "Not Responding"? Is Thunderbird excluded in your antivirus software?
  5. Has a proxy ever been defined, and is it working correctly or was the proxy removed? (A proxy can cause "Unresponsive script")
  6. Does turning off the status bar in View > Toolbars help improve performance?
  7. If you have gmail accounts, is problem gone after unsubscribing the "All Mail" folder?
  8. Is "Unified Folders" enabled in "Folder Modes" at the top of the folder pane? Or are have you created virtual folders? These iterate over multiple folders and can affect responsiveness.
  9. Folders should be well maintained. Help > Troubleshooting Information lists large folders. Folders may also be broken, which can be fixed with right+click on folder, Properties > Repair. Signs of problems and common maintenance steps:
    • Do you see high memory or delay for a specific folder when opening, deleting or archiving, moving a message?
    • Do any folders lose their sort order or column settings?
    • Do you empty Trash and Spam (junk) folders on a regular basis? These should not be larger than a few thousand messages, and you should not use these folders for long term storage. Does performance improve if you empty them? An alternative to manual emptying is setting automatic retention value in Folder Properties. Also see [https://support.mozilla.org/en-US/kb/menu-reference#w_empty-trash File menu, bug 1192827
    • Do any Inbox or filtered folders have several thousand messages? If so, especially for Inbox, consider deleting some messages or moving some to another folder with Archive or some other method.
    • Are compacts routinely performed? Compact must be automatic or done regularly (at least weekly) using manual File > Compact Folders?
  10. Any remote Calendars?
    • Try disabling two or more calendars at a time.
    • If you have many recurring, never ending calendar appointments, try reducing the time period and number of them. Less likely starting with version 128's fix for bug 1844408. Examples: [1], [2]
    • Try setting calendar.caldav.multigetBatchSize > 100 in Settings > Config Editor (100 is default, you must create the preference [3])
  11. Does setting preference ui.prefersReducedMotion to numeric value 1 help in Settings > Config Editor??
  12. Does File > Offline > Work Offline (with Work Offline now "checked") help, which stops checks for new mail, news and RSS feeds.
    • If Offline did not help, do File | Offline | Work Offline - Work Offline should now be "unchecked".
    • If Offline did help, then go back Online (disable Offline) and ...:
      • Does disabling interval checks for new mail help? (Account Settings | Server Settings | uncheck "Check for new messages every N minutes"). If it helps, then ... is a low value (1-3 minutes) specified for checking for new mail? Does increasing it to 5-10 minutes help?
      • Is a low value (1-3 minutes) specified for draft autosave at Options | Composition | General | Auto Save every N minutes. Does increasing to 5-10 minutes help?
      • What type of mail account is this (imap or pop), and how many other accounts are the same type?
      • Are you absolutely certain that antivirus software is not to blame?
      • Are any non-Inbox IMAP folders configured to check for new messages via "always check this folder" in properties? Or is hidden preference mail.check_all_imap_folders_for_new set to true? These increase load on both Thunderbird and the mail server. bug 729504
  13. Does problem resolve by disabling Global Search indexing? Tools|Options|Advanced|General| uncheck Enable Global Search and Indexer (linux: Edit|Preferences|Advanced|... Mac: cmd , advanced tab) and restart Thunderbird. (note, disabling indexing also disables global searching - ctrl+K)
    • If problem did not go away, or to recheck indexing behavior, enable the checkbox again and restart Thunderbird.
    • If the problem did go away - did Thunderbird have extremely high disk IO, seem to be stuck on indexing per Tools|Activity Manager, or is global-messages-db.sqlite (file used for global search) in your profile folder too big? Rule of thumb - the file should not be more than 10-20% of the combined size of all messages in directories Mail and ImapMail.
      • Rename global-messages-db.sqlite (to keep it for later diagnosis), enable the Global Search checkbox, and restart Thunderbird. global-messages-db.sqlite will rebuild and your system load may be high until all your messages are reindexed, but your messages should not redownload from the server.
      • Please file a bug about your problem.
  14. Are any of these indexing methods enabled in Thunderbird:
  15. If you see high CPU usage in Windows taskmgr, Mac activity manager, or linux top, sort the CPU column (details tab for Windows) to see if mozilla updater.exe, Window's update or some other process is hogging CPU.
  16. If you have newsgroup accounts, then in Account Settings > Server Settings try disabling "Check for new messages at startup". If problem is gone you may be seeing many newsgroups with many unread messages, bug 185634, bug 541001, or [16].
  17. If you have RSS feed reader accounts:
    • Is "Automatically create tags from feed category names" enabled? [17]
    • In Account Settings > Server Settings disable "Check for new messages at startup". If problem is gone you may be seeing bug 551144 (fixed in version 13).
  18. Is your Thunderbird profile or any part of Thunderbird not on a local disk? If not local, does it preform better when it is moved to the local disk?
    • Cloud storage is not supported.
    • USB drives are slower compared to a local disk. Some types or manufacturers are terrible. Make sure you've got a good one.
    • network drive (file share) can be slow due to network transmission or slow media (SMB, NFS, AFS, samba)
  19. Consider slow disk or high disk activity
    • check the previous item (NFS, etc)
    • SSD? (sounds silly but some SSD are slow, plus heavy paging or other IO will kill a SSD throughput)
    • in Windows you want at least 20% free disk space, and for spinning disks do periodic defrags
    • check whether any OS or application update process is in progress, for example Windows update
  20. Check activity in Tools > Activity Manager to see if a folder or ISP (mail provider) is being lame. Examples: Yahoo and Gmail (and others) may cause message folders to be redownloaded. slow downloading email (Centurylink)
  21. Common resource requirements and hardware checks:
    • Does your system have the minimum hardware requirements for the current version, especially memory? NOTE: minimum recommended size may not be sufficient for Thunderbird and your system's workload. Paging, even if you have a fast SSD, will kill performance - check activity manager, activity monitor or top.
    • Consider hardware problems - run checks against disks, SSD, memory. We get several reports a year, for example [18], [19]
    • Check BIOS settings: [hanging when sending messages if VT-x is enabled in BIOS]
    • If Thunderbird is running in a VM (virtual machine), is it better when not virtualized?
  22. Lower probability items:
    • Does it help to set accessibility.force_disabled to numeric 1 in Settings > Config Editor?
    • Any Outlook or Hotmail accounts? bug 1355885
    • Is filter logging enabled at Tools > Filters? (look for filterlog.html files - large logs cause high overhead)
    • Do you use server side message filters to place messages in folders? bug 589310
    • Do you have thousands of contacts in your address book? possible related issues: google contacts add-on], [20]
    • clear cache at Settings > General > Disk Space > "Clear Now" and Help > Troubleshooting Information > "Clear startup cache..."
    • On Linux? A package might be causing the problem [21]. Are you running an old version? Consider updating. hangs on Ubuntu 10.04, 14.04 works
    • On macOS, try disabling Thunderbird's access to Mac Contacts in Mac System Settings > Privacy & Security > Contacts.
    • On Windows, did you move the Thunderbird profile directory or any Thunderbird account from the default location "%APPDATA%"? If yes, then MS-Windows Search will attempt to index all Thunderbird disk activity. Disable Windows indexing for your Thunderbird data.
    • uninstall Thunderbird, then DELETE the Thunderbird PROGRAM directory (not the data directory), then download, reinstall, and retest Thunderbird. If using beta get it from channels.
    • If Thunderbird memory usage is more than 1.5GB or more then folders may be corrupted or are not being closed. Please get a diagnostic log of Thunderbird activity with MSGDB:5,timestamp using logging instructions, then file a bug, and attach the zipped log file using "Add an attachment".
  23. If you have a reportable problem or question, please use the next section below.


Report a problem

Create a support request or new bug report with information you have collected:

  • State that you reviewed this document, and which step numbers made things better or worse.
  • Use Numbers when referring to amounts of memory, cpu, time duration, folders, messages - not vague ... fast, slow, small, large.
  • List account details - types (imap, pop, rss), mail providers (domains), etc. - from "Mail and News Accounts" in Help > Troubleshooting Info.
  • Number of messages in your largest folder.
  • Full Thunderbird version number from Help > About, or Help > Troubleshooting Information
  • State precisely when the behavior occurs (startup, shutdown, or "normal operation"), and every step (action, menu click, ...) needed to reproduce the problem.
  • List what is happening in Tools > Activity Manager.
  • State whether your Thunderbird profile data is in a non-standard location.

Bonus:

References

"Not Responding" - Examples: BTTray.exe, (Plusnet Protect/McAfee), McAfee, WSS, Windows Search Indexing and [22], McAfee, McAfee, McAfee (2013) Solutions: use XP3 compatibility mode in Windows 8 (Endicott), use XP3 compatibility mode (missychrissy), use XP3 compatibility mode (WaddyT/2013), use XP3 compatibility mode in Windows 8 (kgcode)

"Unresponsive Script" - Examples: Solutions:

Unresolved bugs and references:

  • Windows Security's "Cloud-delivered protection" causes archive to be slow
  • McAfee antivirus is causing major performance and problems with TB24 (and was with TB17 and TB16). Symptom: slow delete and read, "Unresponsive Script", "(Not Responding)". Solution
  • bug 1342054 - Large number of tags causes very bad tags preference UI performance, from autotaging RSS feeds with "Automatically create tags from feed category names"
  • bug 1438317 - "Indexing messages. Determining which messages to index" stuck on local folder never ends. Modest CPU - 7-10%. Error console "Observed header that claims to be gloda indexed but that gloda has never heard of during compaction"
  • bug 1406653 - Gloda warning repeated every half-second causing high cpu and slow response. "Observed header that claims to be gloda indexed but that gloda has never heard of during compaction" in error console and "Determining which messages to index""
  • bug 1240722 - tidybird add-on causes files/folders to be opened and stay open twice - Thunderbird leaks file descriptors (mostly .msf files) like a sieve causing high memory. (no virtual folders)
  • bug 929281 - Long startup and "Unresponsive Script" with many pop accounts with version 24 (regression in TB18)
  • bug 764306 - When trying to scroll large folders or switch some folders the application beachballs with high CPU (xref: bug 872869)
  • High mem usage, increasing with every delete. No bug report. Solved by right+click, compact.
  • bug 632791 Gloda (Global Search) indexes one message per minute with high CPU. Excessively sized global-messages-db.sqlite caused by buggered, excessively sized offline store. [because offline folder storage has many duplicate messages. but it should not]
  • bug 563677 HTML Mail View slow (45++ sec) for pop and local folders - speed up FolderUriForPath (from bug 545126)
  • bug 487832 - Thunderbird startup performance issues [meta]
  • Template:Bug 357008 - (If you have a profile created between version 1.5 and 2.0) Remove obsolete directory address books entries from prefs
  • Lightning related:
    • bug 441710 - Thunderbird freezes/slow for 3-60 seconds caused by calendar/lightning [meta]
    • bug 753343 - Soft-hang and massive memory leaks with Lightning and ics enabled
    • bug 501689 - Investigate making storage asynchronous // bug 462277 - (calcache) [meta][GSoC 2014] Turn on offline cache by default for new calendars
    • bug 498968 - Create a new, faster storage "storage2" provider
  • larger, less selective list of bugs inclusive of those cited above

Bugs fixed but not released. Typically fixed in unreleased versions (eg. trunk regressions):

  • bug 1502923 - Thunderbird processing / "Not Responding" 5 to 30 minutes at startup. Also "Unresponsive Script" - Performance issues in unifinder.js

Fixed bugs/Resolved issues:

Performance bugs fixed in 60.0:

  • bug 1293245 message with malformed email address makes Thunderbird hang 100% CPU load (also some crashes)
  • bug 1428082 - Thunderbird Daily becomes unresponsive when Add-ons Manager opened from hamburger after bug 1427407 landed (TB59,fixed TB60)
  • bug 1415723 - Severe regression in at least Tb55 when repairing/rebuilding/compacting folder database (msf) file. (TB55, fixed TB59)
  • bug 1404003 Daily from 2017-09-28 re-downloads and indexes messages at every start - high CPU (TB58, fixed TB58)
  • bug 1116196 - Every startup, Warning: Unresponsive Script after approx 15 seconds, with system integration prompt (regression in TB18, stopped appearing in TB54beta)

Performance bugs fixed in 52.0.x:

  • bug 1290733 - UpdateSendLock() in compose window is very slow (TB23, fixed TB51)
  • bug 562965 - folderPane.js ftv_getRowProperties/ftv_getCellProperties disproportionately slow
  • bug 1290729 - Adding new recipients in compose is very slow
  • bug 1242050 - Default output *stream* buffer size of 16KB instead of 4KB
  • bug 558528 - Larger *disk* buffer size, 16KB instead of 4KB, in file I/O by Mail&News to improve performance on slower drives (for example network drives/shares).

Performance bugs fixed in 45.0.x:

  • bug 1223371 - remove windows search, aka integrated search, from Thunderbird System integration dialog startup prompt (not an actual perf improvement, just avoids tempting uneducated users from picking it)

Resolved at unknown date

  • bug 1185245 - Hardware acceleration (HWA) may cause message compose window to lag severely (WFM)

Performance bugs fixed in 38.0:

  • bug 872869 - nsMsgDatabase::ListAllKeys() very slow with high CPU downloading messages into large folder (xref: bug 764306) (regression in TB16)
  • bug 846123 - Thunderbird 100% CPU for minutes when copying a large number of messages (IMAP Online Copy, Copy between Offline-Use=Off folders) (landed in TB37)
  • bug 939462 - Feature to count and show number of unread e-mails in subfolders should be optional. (because enumeration is slow) (regression in TB15) Fixed by bug 1135310 Algorithm from bug 723248 for closing idle folder databases is broken because too many/all databases can be closed and bug 464973 "Expanded Columns" in the folder pane are no longer available to select columns for display for message total count and folder size
  • bug 870556 - O(n^2) performance freezes UI for several minutes fetching new mail from IMAP server for very large folder
  • bug 778907 - Highlighting/selecting 18000+ of emails inside a folder keeps giving the javascript is unresponsive script ("bulkoperations", i.e. not a general performance issue) (landed in TB36)
  • bug 1050840 - "Maximum number of imap server connections to cache" advanced account setting defaults to 1 for new accounts (regression in TB24)

Performance bugs fixed in 31.0:

  • bug 975795 - extremely slow for large selections, because folderDisplay.canArchiveSelectedMessages is too slow (landed in TB30) (helped by bug 943116 and bug 942638)
  • bug 1019969 - (resolved WFM, cause and fix unknown) Thunderbird 18-30b1 gets "Unresponsive script" 45 seconds after launch/startup. OK in 31.0
  • bug 926181 - Thunderbird 24 OSX freezes on startup with profile on network drive (AFP) - fixed via bug 918612 - Mac: Firefox 24 doesn't start, or very slow startup

Performance bugs fixed in 24.0:

  • bug 812923 - Dragging a huge number of messages onto a folder freezes TB even BEFORE dropping (TB24)
  • bug 750781 - Thunderbird 12 veryyyyy slow when opening Message. Sometimes shows "Not Responding" (TB21)
  • bug 810637 - HUGE memory consumption when downloading headers for large IMAP folder with mailnews.customDBHeaders (TB19)

Performance bugs fixed in 17.0:

  • bug 806760 - TB16 Redownloads messages / Constantly bringing folders "up to date" / horrible IMAP performance (TB16 regression)
  • bug 769346 - Poor performance of Move, Copy and Delete to Local Folders due to "one write request per a line of message data"

Performance bugs fixed in 16.0.2:

  • bug 803843 - IMAP mailfiles keep growing to gigabyte size

Performance bugs fixed in 16:

  • bug 793455 - DB cache is closing databases too frequently (regression in 15.0)
  • bug 770416 - (insignificant?) memory leak on some IMAP operations

Performance bugs fixed in 15.0.1:

  • bug 782899 - Daily hangs and leaks memory like crazy when trying to delete messages in the results of a filter search (regression in 15.0)

Performance bugs fixed in 15.0:

  • bug 784286 - Abnormal memory requirements viewing plain-text mail leading to crash
  • bug 723248 - add support for closing inactive databases (folders)
  • bug 762169 - Always asking to compact folders starting version 12

Performance bugs fixed in 14.0:

  • bug 538378 - Mass delete of messages resulted in massive memory usage // bug 296453 - Racing CPU, slow performance moving/deleting/dragging large number of messages

Performance bugs fixed in 13.0:

  • bug 551144 - checking rss feeds has problem freezing Thunderbird UI and high hard drive usage (not a v3 or v3.1 regression)

Performance bugs fixed in 10.0:

Performance bugs fixed in 9.0:

  • bug 689742 - Disable hardware acceleration (direct2d) in Thunderbird

Performance bugs fixed in 5.0

  • bug 574952 - Thunderbird 3.1 account list / folder pane slow to scroll on Mac (Mac-only)
  • bug 617839 - Switching to threads with a large number of emails is extremely slow

Performance bugs fixed in 3.1.5:

  • bug 542234 memory increases about 12MB on each check for new mail for pop accounts, 3.0 & 3.1
  • bug 599119 slow message display/slow navigation - plugin directory scans cause excessive overhead

Performance bugs fixed in 3.0.9:

  • bug 542234 memory increases about 12MB on each check for new mail for pop accounts, 3.0 & 3.1

Performance bugs fixed in 3.0.5:

  • bug 530098 gloda message deletion processing is expensive

Performance bugs fixed in 3.1:

  • bug 533776 gloda indexes while offline, if we startup without a network connection
  • bug 539389 Very slow file manipulation deleting or moving messages (profile stored on synchronized network folder). Tb3 requests write for each line of mail data. Should use buffering.
  • bug 545126HTML Mail View very slow (45++ sec) for pop and local folders (*not* fixed in v3.0.x) / bug 536873 slow load HTML messages with View Message Body as Original HTML - sits at "Loading Message ..." or presents blank screen
  • bug 530098 gloda message deletion processing is expensive (*not* fixed in v3.0.x)
  • bug 493848 gloda activity manager should not create events for event-driven indexing, never display in status bar (*not* fixed in v3.0.x)
  • bug 543737 gloda needs to avoid indexing ridiculously large message bodies (especially from offline store corruption) (indexing stops at 20k per message part)(*not* fixed in v3.0.x)
  • bug 560695 clicking (more) widget in headers with lots of recipients too slow (*not* fixed in v3.0.x)

Performance bugs fixed in 3.0.4:

  • bug 533776 gloda indexes while offline, if we startup without a network connection
  • bug 539389 Very slow file manipulation deleting or moving messages (profile stored on synchronized network folder). Tb3 requests write for each line of mail data. Should use buffering.

Memory related bugs fixed in 3.0.2/3.0.3:

  • bug 540214 imap STATUS not closing db - mail.check_all_imap_folders_for_new and "check this folder for new messages" causes high memory and error message Unable to open the summary file for xxxxx. Perhaps there was an error on disk, or the full path is too long.

Performance related bugs fixed in 3.0.1:

  • bug 534835 offline folder size constantly increases using Exchange IMAP (Exchange returns wrong rfc822 size) - messages redownload
  • bug 537820 quick search in smart folders/saved searches should prefer offline when it has a choice
  • bug 533865 Doing a quick search in a cross-folder saved search clears cached results

Memory related bugs fixed in 3.0

  • bug 525646 Mass delete of messages resulted in massive memory usage (not sustained usage, and was v3-only behavior I think, i.e. not from v2)

Fixed in version 2 and / or prior to releasing version 3.0:

  • RSS
  • google desktop search
  • bug 465353 general sluggish, lack of responsiveness during indexing of gloda (indexing speed kills CPU and performance)
  • bug 518918 Thunderbird 3pre high memory and consuming 100% CPU making mail nearly unusable, need to handle UID's > 0x7FFFFFFF (fixed in 3.0.0)
  • bug 465122 Gloda: Does not close msf files on initial indexing
  • bug 387403 Thunderbird eat memory until crash when opening e-mail with broken vcard (fixed in version 2.0.0.13)
  • bug 216535 large mailboxes seem to cause pathological memory usage, was duped to ...
  • bug 266679 Thunderbird consumes excessive file-handles and memory (fixed 1.5.<something>, and before release of 2.0)

Memory Overview

Related Articles

If you don't need background information about memory, please skip to diagnosis steps.

"How much memory is needed run Thunderbird?" is a frequently asked question. System Requirements defines minimum Thunderbird machine requirements for a "mythical" user. But, these are just minimums, and do not describe how much memory you might need in your "real" environment. A better answer of what is enough memory might be ...:

a) It depends on your Thunderbird configuration (number of large folders, number of accounts, etc)
b) It depends on what you are measuring or doing in Thunderbird at a specific time, because some operations require more memory than others. Like when you are doing mundane things like reading new messages versus when you are searching for messages.
c) Current versions require roughly at least 80 MB to 100 MB more memory than version 2. So (for example) if your version 2 used 50MB, then v3 might use 130 MB to 150 MB.

Which memory to measure ...

  • MS Windows - Working Set/Mem Usage of thunderbird.exe (start taskmgr from ctrl+alt+delete, click Processes tab), and both Total and Available physical memory from the Performance tab.
  • Mac - Real Private Memory of thunderbird (process manager, right click on column bar, select Real)
  • linux - RSS/RES (Reserved Segment Size) for thunderbird

Rules of thumb (these are not "laws") for an average user with NO addons ... after a day of using Thunderbird, if memory usage is :

  • less than 250MB, then you are OK.
  • not much above your version 2 memory usage plus 100MB, then you are probably OK.
  • is over 300MB, then you may have a problem that needs analysis.
  • increasing significantly over a period of day or more, and never drops back below 300MB, i.e. it increases cumulatively over time then you may have a problem. For example, if you click on a folder and memory increases by 10MB and stays at that level or higher forever, and next time you click the same folder and memory increases another 10MB and stays at that level or higher forever ..., then you have a problem.

Note: memory usage is affected by the number and types of extensions (add-ons) installed, number of folders and accounts, number of messages in folders, and bugs.

Other Software

Add-ons / Extensions reported to have caused high memory, performance, or other problems:

Programs (firewall, antivirus, etc) reported to have caused high memory, performance or other problems:

Miscellaneous

Terminology

  • memory usage - varies per OS: in Windows XP taskmgr the column is 'Mem Usage', in Vista it is 'Working Set'
  • Glossary

References