Firefox, Thunderbird Lagging? Lag Fix Inside - gHacks Tech News

Firefox, Thunderbird Lagging? Lag Fix Inside

For the last days I have experienced lags and issues both in the Firefox web browser and the Thunderbird email client. With Thunderbird, I experienced lag that resulted in the Thunderbird window not responding for some time.

The window of the email program recovered after some time, so that I could access the program's functionality 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 discovered 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.

Fix lags 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

There 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 that you have selected.

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)

Summary
Firefox, Thunderbird Lagging? Lag Fix Inside
Article Name
Firefox, Thunderbird Lagging? Lag Fix Inside
Description
If Firefox or Thunderbird lag, you may want to try assigning one specific cpu core to the processes as it may fix the lags that you experience.
Author
Publisher
Ghacks Technology News
Logo

We need your help

Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.

We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats or subscription fees.

If you like our content, and would like to help, please consider making a contribution:

Comments

  1. Ahmad said on October 21, 2011 at 7:34 pm
    Reply

    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/

    1. Midnight said on October 23, 2011 at 3:05 am
      Reply

      I did and it seems to have cleaned up a heaping mess!

      Thanks for sharing!!

  2. Br.Bill said on October 21, 2011 at 7:55 pm
    Reply

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

  3. lima6 said on October 22, 2011 at 1:35 am
    Reply

    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 said on October 22, 2011 at 1:49 am
    Reply

    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?

    1. Martin Brinkmann said on October 22, 2011 at 6:54 am
      Reply

      It depends on a lot of factors. I personally believe that Firefox has been optimized lately in this regard. Have you installed add-ons or themes?

    2. matthijs said on October 22, 2011 at 10:41 am
      Reply

      Here on Ubuntu 11.10 the Flash-plugin (11) in Firefox 7.0.1 seems to be misbehaving. The FlashBlock addon is helping.

  5. David Bradley said on October 22, 2011 at 10:27 am
    Reply

    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 said on October 22, 2011 at 3:26 pm
    Reply

    At first sight I think it is a lot faster.

    FF 7.0.1
    Win 7 x64 ultimate

  7. grom512 said on October 22, 2011 at 5:25 pm
    Reply

    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.

    1. Midnight said on October 23, 2011 at 3:08 am
      Reply

      They might/should fix the problem if someone reports it in Feedback!

  8. ReX said on October 23, 2011 at 2:38 pm
    Reply

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

  9. Rick said on October 24, 2011 at 1:55 am
    Reply

    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 said on January 1, 2012 at 7:53 pm
    Reply

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

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

Please note that your comment may not appear immediately after you post it.