Thunderbird:Testing:Memory Usage Problems: Difference between revisions

m
→‎Diagnosis Steps: add prefs.js size
m (→‎Diagnosis Steps: clarify Mac AB access)
m (→‎Diagnosis Steps: add prefs.js size)
 
(27 intermediate revisions by the same user not shown)
Line 2: Line 2:
'''This article is for users with ALL types of performance issues, not just memory.'''
'''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.'''   
Thunderbird slowness can be caused by CPU, memory and disk activity and come from many sources. The steps below are simplified to be clear and easy to follow, and cover the many possibilities. '''To have the best possible chance of success, please step through the full list.'''   


= Diagnosis =
= Diagnose and Report =
== Diagnosis Introduction ==
== Diagnosis Introduction ==
* '''All steps are <u>temporary</u> *tests*, not a request for you to forever disable a feature.''' Disabling antivirus software for example.  
* We avoid creating a new data profile, because creating a new profile can create its own set of issues. But a new profile is one possible solution.
* '''Do not delete files'''. Instead, rename or move files because we may need "bad files" later for developers to examine.
* '''Do not delete files'''. Instead, rename or move files in case "bad files" are needed for developers to examine.
* Collect information as you do the steps, to later describe your problem:
* Steps are <u>temporary</u> *tests*, not a request for you to permanently disable a feature or antivirus software.
** '''Numbers''' should be used for memory, cpu, time duration, folders, messages - not vague words like fast, slow, small, large.
* '''Do one or two steps at a time, then evaluate before doing more steps. As you proceed, document the results for each step number so you can post the information in a support request.'''
** List <u>account types</u> (imap, pop, rss, etc) from Help | More Troubleshooting Info.
** Document precisely <u>when</u> the behavior occurs (startup, shutdown, etc"), and <u>every step</u> (action, menu click, character typed to reproduce the problem. And use '''numbers''' for amounts of memory and cpu, time duration, # of folders and messages - not vague words like fast, slow, small, large.
** 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.
** Document the diagnosis step numbers that you tested, and which helped or didn't.  
** Document [[Thunderbird:Testing:Memory_Usage_Problems#References|bug numbers]], URLs of postings and references used.
** Document [[Thunderbird:Testing:Memory_Usage_Problems#References|bug numbers]], URLs of postings and references used.
** Screen shots can be helpful.
** Screen shots can be helpful.


== Diagnosis Steps ==
== Diagnosis Steps ==
 
Did you check the items above in [[#Diagnosis Introduction|Diagnosis Introduction]]?
# Are you using the newest Thunderbird? <small>(Versions are listed at [https://www.thunderbird.net/en-US/thunderbird/releases/ releases]. The newest version there should match to your Help | About. If check for Updates doesn't get you to that version, then download it from [https://www.thunderbird.net/ thunderbird.net].</small>)
# Are you using the newest Thunderbird? <small>Check Help > About in Thunderbird to see what '''<u>channel</u>''' and version you are running. Then visit https://thunderbird.net/download to see what version is available for '''<u>your channel</u>'''. NOTE: most users 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/kb/troubleshoot-mode-thunderbird Troubleshoot Mode]. If Troubleshoot Mode helped, then start in normal mode. If the problem returned:
#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>
#*Visit Tools | Add-ons - disable two or more add-ons at a time (or themes or language packs) to determine which might be causing the problem. Are any Add-on items in the [[#Other_Software|list of Problem Extensions]]?   
#*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 '''author''' of suspected bad add-ons using their support website or email.  
#*Contact the '''author''' of suspected bad add-ons using their support website or email. </small>
#Start OS in safe mode. Instructions: [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 for newer version of AV/firewall software, and check with vendor's support site for problem reports
#* 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 we constantly see reports of antivirus causing slowness, and disabling isn't always reliable. See [[Thunderbird:Testing:Antivirus Related Performance Issues|AV performance issues]] for examples and settings.
#* 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 macOS, 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, then '''DELETE''' the Thunderbird '''PROGRAM''' directory (not the data directory), then [https://www.mozilla.org/thunderbird/ download], reinstall, and retest Thunderbird. <small>If using beta get it from [https://www.thunderbird.net/download/beta/ channels].</small>   
# Has a proxy ever been defined, and is it working correctly or was the proxy removed?  (A proxy can cause "Unresponsive script")
#Do you have Calendars? Try disabling two or more at a time. If you have many recurring, never ending calendar appointments try reducing the time period and number of them. <small>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/] </small>
#Does it help to set <code>accessibility.force_disabled</code> to '''numeric''' 1 in Settings > Config Editor?
#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]?  
# '''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]?'''
# 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].
# Is "Unified Folders" enabled in "Folder Modes" at the top of the folder paneOr are have you created virtual folders? These iterate over multiple folders and can affect responsiveness.
# On macOS, try disabling Thunderbird's access to Mac Contacts in Mac System Settings|Privacy & Security|Contacts.
# '''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>
#Folders should be well maintained - if not then the folder index takes more memory and time to load. Help | Troubleshooting lists large folders. Folders may also be broken. 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 you see high memory or delay when opening a specific folder, deleting or archiving, moving message to a specific folder?  
#* Do any folders lose their sort order or column settings?
#* 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?''' <small>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}}</small>
#* 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}}
#* 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].
#* 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.
#* Are [https://support.mozilla.org/en-US/kb/compacting-folders compacts] routinely performed?  Compact 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]?
#* Are [https://support.mozilla.org/en-US/kb/compacting-folders compacts] routinely performed?  Compact 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>
#If [[#Memory Overview|Thunderbird memory usage is more than 1-2GB]] then perhaps  folders are corrupted or not being closed. Please :
# Do you have any remote Calendars?<small>
#*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 -->
#* Try disabling two or more calendars at a time.  
#*[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".
#* 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/]
#Does setting Thunderbird to offline mode help? <small>File | Offline | Work Offline - Work Offline should be "checked" - this stops checks for new mail, news and RSS feeds.</small>
#* 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 did help, 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, disabling indexing also disables searching) </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 of these indexing methods enabled in Thunderbird:
# Are any of these indexing methods enabled in Thunderbird:<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]
#* 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]
#* 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].
#* 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].
#* Mac Spotlight at Thunderbird|Settings|System Integration
#* Mac Spotlight at Thunderbird > Settings > System Integration</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>
# 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.
<!-- fixed in 76 #Are you using chat? {{bug|1575214}} -->
# 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>
#Do you see "Unresponsive Script" or "Not Responding"?  If you do, is Thunderbird whitelisted in your [[Thunderbird:Testing:Antivirus Related Performance Issues|antivirus software]]?  If whitelisting didn't help, 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>
# 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>
#Has a proxy ever been defined, and is it working correctly or was the proxy removed?  (A proxy can cause "Unresponsive script")
#Does turning off the status bar in View > Toolbars help improve performance?
#If you see high CPU usage in Windows taskmgr, sort the CPU column in the details tab 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.
#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 not local, does it preform better when it is moved to the local disk?
#* Cloud storage is not supported.
#* Cloud storage is not supported.
#* 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.]
#* 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.]
#* network drive can be slow due to network transmission or slow media (SMB, NFS, AFS, samba)
#* network drive (file share) can be slow due to network transmission or slow media (SMB, NFS, AFS, samba)</small>
#* SSD?  (sounds silly, but some SSD have been reported to be slow)
# Consider slow disk or high disk activity<small>
#If you suspect slow disk or high disk activity
#* check the previous item (NFS, etc)
#* 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
#* 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 [https://support.mozilla.org/en-US/questions/1226979 Windows update]
#* check whether any OS or application update process is in progress, for example [https://support.mozilla.org/en-US/questions/1226979 Windows update]</small>
#How many virtual folders have you created?
#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>
#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>
#Common resource requirements and hardware checks:<small>
#If you have RSS news reader account:
#* 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 "Automatically create tags from feed category names" enabled? [https://bugzilla.mozilla.org/show_bug.cgi?id=1342054]
#* 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]
#* 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>
#* Check BIOS settings: [[http://forums.mozillazine.org/viewtopic.php?p=14773844#p14773844 hanging when sending messages if VT-x is enabled in BIOS]]
# Any Outlook or Hotmail accounts? {{Bug|1355885}}
#* If Thunderbird is running in a VM (virtual machine), is it better when not virtualized?</small>
#Is filter logging enabled at Tools > Filters?  (large logs cause high overhead)
# Less common possibilities:<small>
#Do you use server side message filters to place messages in folders? <small>{{Bug|589310}}</small>
#* Does turning off the Status Bar in View > Toolbars help improve performance?
#Check activity in Tools > Activity Manager to see if 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>
#* If your folder or account has many (tens of thousands of messages), consider the possibility that your mail provider is throttling (limiting) traffic to its servers. This can make checking for or getting new messages to be slower than expected.
#Common resource requirements, hardware checks:
#* Is filter logging enabled at Tools > Filters?  (look for filterlog.html files - large logs cause high overhead)
#* Do you have the [https://www.mozilla.org/en-US/thunderbird/52.0/system-requirements/ minimum hardware requirements], including [[#Memory_Overview|memory]]? <small>NOTE: minimum recommended size may not be sufficient for <u>your</u> Thunderbird and total system's workload.</small>
#* Do you use server side message filters to place messages in folders? {{Bug|589310}}
#* Consider hardware or virtualization problems [http://forums.mozillazine.org/viewtopic.php?p=14414969#p14414969], [https://support.mozilla.org/en-US/questions/1090651]
#* If you have ever had RSS feed reader accounts:
#* Check BIOS settings: [[http://forums.mozillazine.org/viewtopic.php?f=39&t=3033410 hanging when sending messages if VT-x is enabled in BIOS]]
#** Is "Automatically create tags from feed category names" enabled? Then there is a good chance the prefs.js contains many tags which are causing a performance problem [https://bugzilla.mozilla.org/show_bug.cgi?id=1342054]
#* If Thunderbird is running in a VM (virtual machine), does it run much better when running not virtualized?
#** 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>
#Are you using Linux?
#* Is prefs.js file in the Thunderbird profile directory larger then 500 KB? Then it might have excessive tag entries from the RSS issue discussed above, or some unexpected, repetitive entries.
#*A package might be causing the problem [https://www.reddit.com/r/Thunderbird/comments/183tc5h/suddenly_slow_thunderbird_on_linux_gentoo_how_to/]
#* Does it help to clear cache at Settings > General > Disk Space > "Clear Now" and Help > Troubleshooting Information > "Clear startup cache..."?
#*Are you 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]
#* Do you have thousands of contacts in your address book?  
#If you have a reportable problem or question, please use the next section below.
#* 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]
 
#* 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 "[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].
#* 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 [[#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 none of the above helped, or 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> -->
<!-- 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 ==
== 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].
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|Provide the information you have collected from the steps above]]:
[[#Before starting|the information you have collected]]:


* List <u>account types</u> (imap, pop, rss, etc), and number of each and names of mail providers from Help | More Troubleshooting Info.
* '''State that you reviewed this document''', and which step numbers made things better or worse.  
* Total number of messages.
* Use '''Numbers''' when referring to amounts of memory, cpu, time duration, folders, messages - not vague ... fast, slow, small, large.
* '''Numbers''' should be used for memory, cpu, time duration, folders, messages - not vague words like fast, slow, small, large.
* List account details - types (imap, pop, rss), mail providers (domains), etc. - from "Mail and News Accounts" in Help > Troubleshooting Info.
* Full Thunderbird <u>version number</u> from Help | About, or Help > Troubleshooting Information
* '''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.
* 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.
* What's happening in Tools|Activity Manager
* List what is happening in Tools > Activity Manager.
* The step numbers that you tested, and which helped or didn't.  
* 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.
* Whether your [https://support.mozilla.org/en-US/kb/profiles-where-thunderbird-stores-user-data Thunderbird profile data] is in a non-standard location.
 
* Any bug report(s) match your problem? Check the [[#References|topmost entries in the "Unresolved bugs" list in this document]] and [https://mzl.la/3Xg2Bsg list of open performance bug reports], to add them to your report.  
Bonus:
* 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
* URLs of related postings and references
* Any message which demonstrates the issue can saved from Thunderbird as .eml file, and then attached.
* Attach any message which demonstrates the issue, saved from Thunderbird as .eml file.
* Screen shots can be helpful.
* '''Screen shots'''.
 
* URL to a [https://support.mozilla.org/kb/profiling-thunderbird-performance performance profile which you created].
Plus URL to a [https://support.mozilla.org/kb/profiling-thunderbird-performance performance profile which you create] in one of the following


= References  =
= References  =
Line 123: Line 123:


'''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]]'''
Line 152: Line 153:
* {{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 343: Line 344:


* 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
Line 357: Line 359:


= 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]
canmove, Confirmed users
2,230

edits