Firefox is slow to start up (15-20s), or open links from other applications
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2018
    Location
    Italy
    Posts
    11

    Firefox is slow to start up (15-20s), or open links from other applications

    I'm on Fedora 28 Workstation, beta 1.3, I'm keeping it updated daily.
    Firefox 59.0.1 64bit.

    The problem:
    Whenever I start up Firefox, warm or cold start, from the dash or terminal, it takes about 15 seconds to show up.
    Also, if a open a link from any other application, say the About page from any app, before the new tab with the link starts to load it takes the same amout of time.

    What I've tried already:
    Restarting Firefox without add-ons.
    Creating a new temporary profile.
    Restarting the PC multiple times.

    What can I do? Or on a broader way, how can i debug and look into this sort of problem? Where can I start?

    EDIT: as per answers below I might add that the PC has a i5-6300U, 8GB Ram, integrated GPU and is fast enough.
    On the Debian installation I had before, same Firefox, the delay was at most 2-3s for starting up the app or opening links from other app.
    Last edited by sonnhy; 15th April 2018 at 08:39 AM.

  2. #2
    Join Date
    Jun 2005
    Location
    Montreal, Que, Canada
    Posts
    5,303

    Re: Firefox is slow to start up (15-20s), or open links from other applications

    What I think FF is doing is checking for updates to itself, reviewing it's configuration, and setting up for multi-tasking.
    Leslie in Montreal

    Interesting web sites list
    http://forums.fedoraforum.org/showth...40#post1697840

  3. #3
    Join Date
    Oct 2010
    Location
    Canberra
    Posts
    2,973

    Re: Firefox is slow to start up (15-20s), or open links from other applications

    Unless the computer has _very_ limited performance, the interval would strongly imply it was trying to do something over the network.

    Perhaps a bit of network monitoring software might allow you to get to the root cause.
    WireShark might be best option.

    User error. Please replace user and try again

  4. #4
    Join Date
    Mar 2018
    Location
    Italy
    Posts
    11

    Re: Firefox is slow to start up (15-20s), or open links from other applications

    Quote Originally Posted by lsatenstein
    What I think FF is doing is checking for updates to itself, reviewing it's configuration, and setting up for multi-tasking.
    Thanks. I'll try to look about the auto checking of updates and try disabling multi-tasking.

    Quote Originally Posted by ocratato
    Unless the computer has _very_ limited performance, the interval would strongly imply it was trying to do something over the network.

    Perhaps a bit of network monitoring software might allow you to get to the root cause.
    WireShark might be best option.
    Right, I've forgotten to exclude the first obvious cause, that the PC was slow, but it isn't. I've edited the first post.
    Thanks, I'll try to use WireShark now to see if there's something going on with the network.

  5. #5
    Join Date
    Mar 2018
    Location
    Italy
    Posts
    11

    Re: Firefox is slow to start up (15-20s), or open links from other applications

    Something is coming up.
    I've tried to start and open links multiple times and it seems that a standard query (DNS) is sent to "e7470.lan" which is my current hostname (plus the ".lan").
    Then it ask for "e7470" which is just my hostname and it get answered. I've followed the output.
    Code:
    -- I start Firefox from the dash icon
    N
    3	4.238732578	192.168.1.101	192.168.1.254	DNS	69	Standard query 0x8461 A e7470.lan
    6	9.243873036	192.168.1.101	192.168.1.254	DNS	69	Standard query 0x8461 A e7470.lan
    11	14.249311315	192.168.1.101	192.168.1.254	DNS	65	Standard query 0x582c A e7470
    12	14.252172265	192.168.1.254	192.168.1.101	DNS	81	Standard query response 0x582c A e7470 A 192.168.1.101
    -- (it repeats the same 4 packets another time)
    -- this is the first query it does when the Firefox window show up
    17	24.943310077	192.168.1.101	192.168.1.254	DNS	84	Standard query 0xfcbe A detectportal.firefox.com
    Trying to dig:
    Code:
    ➜  ~ dig e7470.lan
    
    ; <<>> DiG 9.11.3-RedHat-9.11.3-6.fc28 <<>> e7470.lan
    ;; global options: +cmd
    ;; connection timed out; no servers could be reached
    My /etc/host*
    Code:
    ::::::::::::::
    /etc/host.conf
    ::::::::::::::
    multi on
    ::::::::::::::
    /etc/hostname
    ::::::::::::::
    e7470
    ::::::::::::::
    /etc/hosts
    ::::::::::::::
    127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
    ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

  6. #6
    Join Date
    Jun 2004
    Location
    Maryland, US
    Posts
    7,352

    Re: Firefox is slow to start up (15-20s), or open links from other applications

    Quote Originally Posted by sonnhy
    Something is coming up.
    I've tried to start and open links multiple times and it seems that a standard query (DNS) is sent to "e7470.lan" which is my current hostname (plus the ".lan").
    Then it ask for "e7470" which is just my hostname and it get answered. I've followed the output.
    Code:
    -- I start Firefox from the dash icon
    N
    3    4.238732578    192.168.1.101    192.168.1.254    DNS    69    Standard query 0x8461 A e7470.lan
    6    9.243873036    192.168.1.101    192.168.1.254    DNS    69    Standard query 0x8461 A e7470.lan
    11    14.249311315    192.168.1.101    192.168.1.254    DNS    65    Standard query 0x582c A e7470
    12    14.252172265    192.168.1.254    192.168.1.101    DNS    81    Standard query response 0x582c A e7470 A 192.168.1.101
    -- (it repeats the same 4 packets another time)
    -- this is the first query it does when the Firefox window show up
    17    24.943310077    192.168.1.101    192.168.1.254    DNS    84    Standard query 0xfcbe A detectportal.firefox.com
    Trying to dig:
    Code:
    ➜  ~ dig e7470.lan
    
    ; <<>> DiG 9.11.3-RedHat-9.11.3-6.fc28 <<>> e7470.lan
    ;; global options: +cmd
    ;; connection timed out; no servers could be reached
    My /etc/host*
    Code:
    ::::::::::::::
    /etc/host.conf
    ::::::::::::::
    multi on
    ::::::::::::::
    /etc/hostname
    ::::::::::::::
    e7470
    ::::::::::::::
    /etc/hosts
    ::::::::::::::
    127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
    ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
    Try this, go in Firefox and load the page: "about:config"
    when it shows all the configuration values, search for "network.dns.disableIPv6" and set it to "true"
    now try Firefox again and see if it's faster

  7. #7
    Join Date
    Mar 2018
    Location
    Italy
    Posts
    11

    Re: Firefox is slow to start up (15-20s), or open links from other applications

    Quote Originally Posted by marko
    Try this, go in Firefox and load the page: "about:config"
    when it shows all the configuration values, search for "network.dns.disableIPv6" and set it to "true"
    now try Firefox again and see if it's faster
    Thanks, but I'm afraid it did nothing. Also, WireShark still looks for that "e7470.lan" which won't find anytime soon since it's not a known host.

  8. #8
    Join Date
    Mar 2018
    Location
    Italy
    Posts
    11

    Re: Firefox is slow to start up (15-20s), or open links from other applications

    I've solved it.
    The problem was related to resolv.conf settings.

    Since from a clean installation my resolv.conf was:
    Code:
    # Generated by NetworkManager
    search lan
    nameserver 192.168.1.254
    Which, AFAIK it means that:
    • it has to search for ".lan" whenever an app (in this case Firefox and Thunderbird as well) searches for the machine hostname; for me it was e7470, so it looked for e7470.lan. This whole staff
    • it uses the nameserver at that IP (which in my case it was the router) as a DNS resolver; so it looked for e7470.lan there, which of course failed because my machine hostname is just "e7470".

    I've solved by switching to dnsmasq DNS resolver, which is a service that runs locally and cache the results. I've switched to it editing /etc/NetworkManager/NetworkManager.conf with dns=dnsmasq.
    Now, resolv.conf looks like this:
    Code:
    # Generated by NetworkManager
    search localdomain
    nameserver 127.0.0.1
    From what I've understood that search localdomain part was what was needed to solve it.

    EDIT: After having quite a lot of problems, it seems I had to edit my /etc/hosts file, adding a line that pointed to localhost for the hostname "e7470.lan".
    I don't repute this an answer but more as a workaround. Still, a very strange problem indeed. I don't know why Firefox and Thunderbird look for that hostname or why NetworkManager assign me a "search lan" even tho my hostname is just a single word.
    Last edited by sonnhy; 23rd April 2018 at 05:00 PM. Reason: Added workaround

Similar Threads

  1. Getting mailto links in Firefox to open Evolution
    By craftyminion in forum Using Fedora
    Replies: 1
    Last Post: 14th December 2007, 09:01 AM
  2. Firefox won't re-open after using email links
    By tmick in forum Using Fedora
    Replies: 2
    Last Post: 15th January 2006, 08:07 PM
  3. Firefox: Open links in the same tab
    By Cyberian in forum Using Fedora
    Replies: 1
    Last Post: 27th October 2005, 09:23 AM
  4. Getting Thunderbird to open links in Firefox
    By fryem720 in forum Using Fedora
    Replies: 3
    Last Post: 13th January 2005, 08:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •