+353 (0)1 602 4784
info@enovation.ie
  • Client Support
  • FR
  • UK
EnovationEnovationEnovationEnovation
+353 (0)1 602 4784
  • WHAT WE DO
    • OUR SERVICES
      • Consultancy
      • eLearning Content
      • Build & Design
      • Training
      • Moodle Educator Certification Program (MEC)
      • Hosting
      • Support & Maintenance
    • OUR SOLUTIONS
      • Aura Talent
      • Moodle
      • Moodle Workplace
      • Totara’s Talent Experience Platform
        • Totara Learn
        • Totara Engage
        • Totara Perform
      • Mahara
      • Go1 Premium Content
  • WHO WE ARE
    • About Enovation
    • Careers
  • CASE STUDIES
  • OUR PARTNERS
    • Microsoft Teams
    • IntelliBoard
    • BigBlueButton
  • INSIGHTS
  • CONTACT US

Moodle performance investigation – using performance info

    Home News Moodle performance investigation – using performance info

    Moodle performance investigation – using performance info

    Tomek Muras | News | 3 April, 2020

    One way to troubleshoot a poor performing Moodle installation is to use the built-in “performance information” tool. It won’t always help to find the root cause but it’s often helpful in pointing you in the right direction for further investigation.

    To enable it, login as an admin user to Site administration -> Development -> Debugging ( <moodle_url>/admin/settings.php?section=debugging ) and enable “perfdebug):

    After doing it, login as a typical user (usually a student), and navigate to main entry point for the the user (eg. course view) and scroll to the bottom.

     

    You should see extra performance information rendered:

     

     

    If you don’t see it, then your theme may not be displaying it. As an admin, set “Allow theme changes in the URL” to “yes” under Site administration -> Appearance -> Themes -> Theme settings ( /admin/settings.php?section=themesettings ). Then open the URL again but append “theme=boost” to the URL. For example I would open course 86 and force theme switch by entering: https://moodle38.enovation.ie/course/view.php?id=86&theme=boost .

     

    The most important values from the performance information are:

    1. In the top left corner “0.929473 secs” – this is the time it took to render the current page. It will be the same time as “ticks: ” in the third column. 100 “ticks” is 1 second. In the example above we see 0.929 sec and ticks: 93.
    2. “DB reads/writes” tells us how many database reads (ie SELECT) and writes (ie INSERT, UPDATE, DELETE) were issued during the request. Here we have “DB reads/writes: 230/1”.
    3. DB queries time: 0.07642 secs – this tells us that out of 0.93 second spent on rendering the page, 0.07 sec was spent handling 230 read + 1 write SQL queries.
    4. ticks: 93 user: 27 sys: 3 csuser: 0 csys: 0.  Pay attention to the first 3 values (ticks = 93, user = 27 and sys = 3), csuser and csys will usually be 0s. Assume simply that 1 “tick” means 0.1 second.
      ticks: 93 –  tells us that it took 0.93 seconds between your web server started and finished the execution of the script we’ve checked (ie course.php).
      user: 27 – means that the PHP script has used 0.27 seconds of the CPU running in the “user mode”.
      sys: 3 – tells us it also used 0.03 seconds of CPU “system time”.

     

    The difference between “user time” and “system time” is usually not that important for the investigation. Let’s sum those up: 0.27 + 0.03 = 0.30 (sec).

     

    The above means that start-to-end it took our script 0.93 seconds to execute but out of those, the CPU spent only 0.30 seconds working for us.
    What was going on during the remaining time of 0.93 – 0.30 = 0.63 seconds?
    Time spent issuing DB queries is not taken into account for user and sys ticks, so we have “missing” 0.07 here. That sums up now to 0.30 + 0.07 = 0.37. We still have “missing” time of 0.93 – 0.37 = 0.56 seconds.

     

    The performance information won’t give a direct answer about that missing time. Usually this time was spent on some kind of wait – for example:

    • input / output
    • network call
    • locking

    It is a good idea to provide this information when you’re looking for a help – for example on the Moodle performance forum.

     

    Next Previous
    Moodle+, Performance info, scaling Moodle

    Related Post

    • Our 2020 Highlights-It’s been quite a year!

      Emma Cronin | Blog, eLearning, Enovation News, News | 16 December, 2020

      2020 is a year that we will never forget. We have adapted to new ways of working and together we have come through this challenging time by working together. Although it has been a difficultRead more

    • Enovation: Microsoft Education Partner

      Microsoft Teams: Add Teams Meeting Scheduling to Your Solution

      Enovation Admin | News | 26 November, 2020

      Enovation is proud to be a certified Microsoft Education Specialist Partner. This partnership seeks to give educators the tools they need to unlock limitless learning for students and help them achieve their full potential. WithRead more

    • Elevate your Team with World-Class Training Modules from Enovation and Go1:

      Enovation Admin | Blog, eLearning, Enovation News | 17 November, 2020

      Enovation and Go1 have developed premium content bundles to allow your organisation to spend less time on content and more time on learning.  Go1 and Enovation understand that your organisation needs to deliver a diverseRead more

    • Manage multiple learning environments from a single installation with Moodle Workplace 3.9.2

      Enovation Admin | Blog, eLearning, Enovation News, Events, Featured News, Media, Moodle, News | 19 October, 2020

      The latest version of Moodle’s corporate LMS takes multi-tenancy one step further with the new shared space, shared programs and shared certifications. Moodle Workplace is our learning management system designed to create collaborative learning experiencesRead more

    • Upcoming Webinar’s: August&September ’20. Save Your Seat!

      Enovation Admin | Blog, eLearning, Enovation News, Events, Featured News | 13 August, 2020

      MEC Webinar- August 27th If you are interested in hearing more about the Moodle Educator Program (MEC) we have an upcoming webinar that will begin at 10:00 AM on the 27th of August, eLearning ConsultantRead more

    NextPrevious

    Latest Insights

    • 6 January, 2021
      Comments Off on Open-source: Spend Less, Gain More.

      Open-source: Spend Less, Gain More.

    • 16 December, 2020
      Comments Off on Our 2020 Highlights-It’s been quite a year!

      Our 2020 Highlights-It’s been quite a year!

    • Enovation: Microsoft Education Partner
      26 November, 2020
      Comments Off on Microsoft Teams: Add Teams Meeting Scheduling to Your Solution

      Microsoft Teams: Add Teams Meeting Scheduling to Your Solution

    • 17 November, 2020
      Comments Off on Elevate your Team with World-Class Training Modules from Enovation and Go1:

      Elevate your Team with World-Class Training Modules from Enovation and Go1:

    Archives

    • January 2021
    • December 2020
    • November 2020
    • October 2020
    • September 2020
    • August 2020
    • July 2020
    • June 2020
    • May 2020
    • April 2020
    • March 2020
    • February 2020
    • January 2020
    • November 2019
    • October 2019
    • September 2019
    • August 2019
    • July 2019
    • June 2019
    • May 2019
    • March 2019
    • February 2019
    • January 2019
    • December 2018
    • November 2018
    • October 2018
    • September 2018
    • August 2018
    • July 2018
    • June 2018
    • May 2018
    • April 2018
    • March 2018
    • February 2018
    • January 2018
    • December 2017
    • November 2017
    • October 2017
    • September 2017
    • August 2017
    • July 2017
    • June 2017
    • May 2017
    • April 2017
    • March 2017
    • January 2017
    • November 2016
    • October 2016
    • June 2016
    • March 2016
    • February 2016
    • January 2016
    • December 2015
    • November 2015
    • October 2015
    • September 2015
    • July 2015
    • June 2015
    • May 2015
    • March 2015
    • February 2015
    • January 2015
    • December 2014
    • November 2014
    • September 2014
    • June 2014
    • May 2014
    • January 2014
    • August 2013
    • April 2013
    • March 2013
    • February 2013
    • January 2013
    • September 2012
    • July 2012
    • May 2012
    • April 2012
    • February 2012
    • December 2011
    • November 2011
    • June 2011
    • May 2011
    • April 2011
    • March 2011
    • February 2011
    • January 2011
    • December 2010

    Sign-up to get our insights direct to your inbox

      Enovation Square

      Enovation Solutions Ltd.,
      The Friary,
      Bow Street,
      Dublin, D07 X680,
      T: +353 (0) 1 602 4784

      Partners & Certifications

      images

      Moodle Partner Logo

      Latest Insights

      • Open-source: Spend Less, Gain More.

        We are Enovation, trusted Moodle & Totara Learn partners and all ’round

        6 January, 2021
      • Our 2020 Highlights-It’s been quite a year!

        2020 is a year that we will never forget. We have adapted

        16 December, 2020
      • Enovation: Microsoft Education Partner

        Microsoft Teams: Add Teams Meeting Scheduling to Your Solution

        Enovation is proud to be a certified Microsoft Education Specialist Partner. This

        26 November, 2020

      Latest Tweets

      Tweets by @EnovationIRE
      • Legal Information
      © 2021 Enovation Your eLearning Partner
      • WHAT WE DO
        • OUR SERVICES
          • Consultancy
          • eLearning Content
          • Build & Design
          • Training
          • Moodle Educator Certification Program (MEC)
          • Hosting
          • Support & Maintenance
        • OUR SOLUTIONS
          • Aura Talent
          • Moodle
          • Moodle Workplace
          • Totara’s Talent Experience Platform
            • Totara Learn
            • Totara Engage
            • Totara Perform
          • Mahara
          • Go1 Premium Content
      • WHO WE ARE
        • About Enovation
        • Careers
      • CASE STUDIES
      • OUR PARTNERS
        • Microsoft Teams
        • IntelliBoard
        • BigBlueButton
      • INSIGHTS
      • CONTACT US
      Enovation
      +353 (0)1 602 4784