Drupal performance optimisation. Module Performance Monitor

Submitted by admin on Tue, 01/24/2017 - 18:45

Hi!

Today, I'd like to share with you a Drupal module I made, the Performance Monitor. I covered it in my keynote at DrupalCamp Krasnodar 2016.

Let's start with the reasons why I coded this one in the first place.

The Task

At Initlab, we often receive queries (mostly from web developers) that boil down to a couple of typical issues: the site is slow after migration to another server/hosting; the site is slow and it feels like the server should be optimized for Drupal.

Now, there is a routine a good sysadmin follows when resolving such issues.

  1. First off, he rate page generation time.
  2. Then checks MySQL status and settings.
  3. Checks if php opcache is there and working.
  4. Checks if Memcached is helping with caching.
  5. Gathers system resources demand stats to see what needs optimisation.

In my opinion, rendering Drupal server optimization services we face the following problems.

  1. The customer cannot see the real results of optimization and compare the new new server to the old one.
  2. Sysadmin has to gather quite a lot of performance data needed for further optimization, which is the type of work far from exciting.

I searched for Drupal modules that could solve these problems. The only one I stumbled upon was Performance and Scalability Checklist, which is just a checklist with no automation and testing tools onboard.

Having not found what I was looking for, I made the module I needed myself. The Performance Monitor.

Module description

Performance Monitor is based on the Security Review module.

Main features of the Performance Monitor:

  • Evaluate "Performance score" indicator using web server processing time testing with a small php script.
  • System performance testing:
    1. CPU performance test;
    2. database performance test;
    3. file operations performance test;
  • MySQL status and fine tuning recommendations.

Here are some screenshots:

Screenshot at Sep 08 13-27-35.png

Screenshot at Sep 08 13-29-06.png

Performance Monitor module will come handy to those who have their sites powered by Drupal and system administrators optimizing servers for Drupal.

Installation

Simply install the module as you normally do and activate it.

Copy file perfmon.test.php to site root folder. This file must be accessible by url http://yoursitename.com/perfmon.test.php

Launch testing in Reports -> Performance Monitor -> click “Run Testlist”

I am open to your comments and questions! Do share your feedback about Performance Monitor.

Add new comment

Filtered HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.