• Hi,

    We have some database generated pages that are used to list products.

    When more of these pages are called at the same time, things get really slow.

    A single page usually takes ~1,5 second to load. But if 5 pages are called at the same time, it’s not uncommon that some of them takes ~10 seconds to load ??

    We have tried using Query Monitor to debug things, but can’t spot any problems with our queries.

    Looking at a page that took 8,54 seconds to load, the database query time was only 0,6165 seconds.

    How do we find out what is causing the problems if it’s not the database queries?

    Thanks,
    Mads

    https://www.ads-software.com/plugins/query-monitor/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Hi Mads,

    Have you checked the HTTP Requests panel in QM? If there are HTTP queries being performed on every page, this could slow things down greatly. If this isn’t the case, then it sounds like your server may be very low on resources (memory, CPU, etc).

    This can be quite difficult to debug. I would start by taking a look at the list of Related Tools on QM’s GitHub repo: https://github.com/johnbillion/query-monitor#related-tools. XHProf is the tool that you want, but there’s quite a learning curve with it.

    Thread Starter Mads Phikamphon

    (@madsphi)

    Thanks.

    The HTTP Requests panel says “None” in QM.

    According to “ps aux” via Putty, I use ~11% CPU and ~5% memory at the moment – and right now a page load took 14,6 seconds (via QM).

    For the 14,6 seconds page load, db query time was 1,9 seconds and HTTP Requests = “None”.

    @mads: a further thing to examine would be the Assets panel, as well as how many files are being loaded per page load (on the QM Add-ons list, both QMX and Included Files plugins will both provide that panel).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Page load getting slower and slower’ is closed to new replies.