• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Why my web gui was slow to load.

Scheduled Pinned Locked Moved webGUI
2 Posts 2 Posters 485 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    Alex the firewall
    last edited by Jul 19, 2022, 8:59 AM

    I know why my WebGui is slow, makes sense that if you have the firewall logs on the dashboard it will slow the GUI down.. I watched the requests using the browsers debug console and in the code tens of times in my case because I had 5 interfaces worth of logs was the below, each one of those is a reverse DNS lookup. I removed the panel and the page load of 11sec has dropped to 488ms, thats 20x quicker.

    <td>INTERNETOFTURD</td>
    <td><a href="diag_dns.php?host=xxx.xxx.xxx.xxx"
    	title="Reverse Resolve with DNS">xxx.xxx.xxx.xxx</a>
    </td>
    <td><a href="diag_dns.php?host=xxx.xxx.xxx.xxx"
            title="Reverse Resolve with DNS">xxx.xxx.xxx.xxx</a>:7000			</td>
    </tr>
    

    Screenshot 2022-07-19 at 18.35.45.png Screenshot 2022-07-19 at 18.43.43.png Screenshot 2022-07-19 at 18.46.20.png

    Leaving this here for others who might have the same Q's.

    Peace

    Alex

    G 1 Reply Last reply Jul 19, 2022, 2:56 PM Reply Quote 0
    • G
      Gertjan @Alex the firewall
      last edited by Jul 19, 2022, 2:56 PM

      @alex-the-firewall

      Nearly all 'webgui is slow' issues are really 'I have DNS issues'. Checking out the many 'webgui is slow' forum threads normally end with ..... nothing, as the author silently undid his previous DNS settings and doesn't erport back here, or are explained in the forum and then DNS is corrected.

      After all, DNS needs to work for not only the pfSense WegGUI, but pretty everything on your local networks.
      I mean, when pfSense default DNS settings get altered, its very possible that overall DNS functionality gets impacted.

      Btw : most host names shown by the GUI are only known to the local DNS == the resolver or the forwarder. Resolving them doesn't produce any time taking requests to public resolvers. These public resolvers can't even resolve host names that are only known to your local network - they will try, searching through their billion records database, and give up by sending back a "we don't have what you are asking - unknown on the Internet", also known as a NXDOMAIN answer.

      I advise you to do everything that is possible to reduce the number of restarts of the resolver (or forwarder). It will build a cache with previously resolved host names

      Then you activate :

      672ff694-acfd-4a92-99c9-755e9c5e7a6c-image.png

      and after a while you enter 'DNS warp speed'.

      These are some of my unbound/resolver stats.
      Note that unbound can get restarted by, for example, pfBlockerng-devel (other events might also restart unbound/dnsmasq). The cache will get dumped just before the stop, to get read back in while it's starting.

      Last but not least : the core functionality of pfSense, routing and firewalling, is build into the kernel. pfSense is more then that, and adds a lot of other options, functionalities and even gadgets. Most of these are implemented using some web server scripting like PHP, perl, python etc. So, all these take processor == webserver (nginx) time.
      Depending the type of processor, and Intel Mega Lax Core isn't equal to some low power ARM processor.

      Why did you add the waterfall download example of a zillion js files ? That's not DNS related.
      That's just downloading those stupid js files that declare themselves most often as 'non cache-able' by your web bowser, to visiting these sites using these bootstrap js file will always be slow == depending your uplink/downlink.

      No "help me" PM's please. Use the forum, the community will thank you.
      Edit : and where are the logs ??

      1 Reply Last reply Reply Quote 0
      1 out of 2
      • First post
        1/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received