ghacks Technology News

Firefox, Thunderbird Lagging? Lag Fix Inside

For the last days I have been receiving lags and issues both in the Firefox web browser and the Thunderbird email client. With Thunderbird I’m experiencing lags where the window is not responding for some time. I just have to wait and the window becomes accessible again.

With Firefox it is another issue. The browser just stops receiving traffic from the Internet as if it is blocked by a firewall or as if the Internet connection died. The only solution here so far was to restart the web browser.

David Bradley now has found a solution that fixed the Thunderbird lag issue, and probably the Firefox no traffic issue as well.

David mentioned frequent stutter or lag in the browser leading to the “not responding” message that can last for a few moments. This was the same behavior that I experienced in Thunderbird.

The solution or fix here is to assign one specific core to the Firefox, or in my case Thunderbird, process. This obviously only works if a multi-core cpu is available.

Users who just want to test the setting can assign a specific core by opening the Windows Task Manager with Ctrl-Shift-Esc, right-clicking the firefox.exe or thunderbird.exe process and selecting Affinity from the context menu.

firefox process affinity

Here they need to select a specific cpu core or remove one from the listing to test the fix. Please note that this is only a temporary solution. A system state change, e.g. a reboot, standby or hibernation resets the affinity settings there.

A permanent solution is to create a new program shortcut and set the cpu affinity this way.

The command for Firefox is this one:

C:\Windows\System32\cmd.exe /c start “C:\Program Files\Mozilla Firefox\” /affinity x firefox.exe

where x is the cpu core number. (cpu 0 = 1, cpu 1 = 2, cpu 2 = 4, cpu 3 = 8 and so on).

For Thunderbird the command is

C:\Windows\System32\cmd.exe /c start “C:\Program Files (x86)\Miramar 3.3 Alpha 1\thunderbird.exe” /affinity x thunderbird.exe

The easiest way is to copy the shortcut from the start menu or to use Windows Explorer to open the folder where the program is installed. There you can right-click firefox.exe or thunderbird.exe and select to create a new shortcut.

It is likely that we will see an official fix in the coming days / weeks. You can then simply delete the shortcut or modify it again so that all cpu cores are used by the application. It is unlikely that this change has an effect on the program’s performance.

Windows XP users cannot make use of the command. The suggestion here is to use the freeware RunFirst which sets the process affinity automatically to one core.

Has this fixed your issue as well? Let me know in the comments. (thanks David, via)

Enjoyed the article?: Then sign-up for our free newsletter or RSS feed to kick off your day with the latest technology news and tips, or share the article with your friends and contacts on Facebook or Twitter.

Related Articles:

How To Download Old Firefox And Thunderbird Releases
Firefox 3.6 And Thunderbird 3.01 Portable [Software]
Firefox And Thunderbird Image Zooming
Thunderbird 2.0.0.4 released
Create Custom Firefox And Thunderbird Installations



About the Author:Martin Brinkmann is a journalist from Germany who founded Ghacks Technology News Back in 2005. He is passionate about all things tech and knows the Internet and computers like the back of his hand. You can follow Martin on Facebook or Twitter.

Author: , Friday October 21, 2011 -
Tags:, , , , ,


Responses so far:

  1. Ahmad says:

    Nice tip… Will try with Nightly.
    But I say you should also take a look at this addon:
    https://addons.mozilla.org/en-US/firefox/addon/places-maintenance/

  2. Br.Bill says:

    Hm. Wonder what OSX effects are and how to coerce such behavior there.

  3. lima6 says:

    Did not make any difference with FF 7.0.1. Running XP Pro and used Process Lasso to set affinity. Hmmm, wonder what is under the hood (bonnet for you Brits) that is causing this behavior?

  4. robin says:

    Not a Windows user here, but I’d like to ask OT: in Ubuntu, FF is an insatiable memory hog, routinely climbing north of 500M. For us this is a real performance hit, along what you described here.

    Does Windows FF have this issue as well?

  5. Thanks for mentioning my tip. It definitely works for me on Windows 7 with the latest stable FF. Don’t think Mozilla has really fixed anything in terms of RAM abuse, it seems to grab huge chunks and still leaks. I also don’t think there is anything under the bonnet causing the issue.

  6. JFP says:

    At first sight I think it is a lot faster.

    FF 7.0.1
    Win 7 x64 ultimate

  7. grom512 says:

    I noticed this with TB 5 about 2 months ago (Win Pro 7 64). Switched to TB 3.1.15

    Couple of weeks ago the same happened with FF 7. Switched to FF 3.6.23

    No problems with the earlier versions. It is however surprising that Mozilla has not been able to fix the problem for so long.

  8. ReX says:

    That’s weird as hell, it started happening all of a sudden, almost like a time-bomb.

  9. Rick says:

    I haven’t had an issue since I disable disk cache and only use the ram cache (which I have set at 1.5G). Interestingly, the ram cache hasn’t been over 100M even after a few hours of browsing.

  10. pd says:

    Ever thought that Chrome running (at least) 10 processes might be a factor?

Leave a Reply   Follow Ghacks   Subscribe To Comment Rss

Subscribe without commenting

© 2005-2012 Ghacks.net. All Rights Reserved. Privacy Policy - About Us