Moodle slow after upgrade to 2.9.3+

Moodle slow after upgrade to 2.9.3+

by Ju Groen -
Number of replies: 1

Hi smile

I just did an upgrade from moodle 2.6 to 2.9.

I notice that Moodle runs quite a bit slower. It takes 8-9 seconds to load the index page. I think it took 3 seconds on moodle 2.6.

I`m running php 5.5 and MYSQL 5.6. Opcache is enabled as per: https://docs.moodle.org/26/en/OPcache
Also I disabled session storage in database. 

The server has 4GB ram, Xeon e5-2630. I also followed the performance write up, but couldnt find much to improve.

If i let top running during a page load, I see this:

[code]

Tasks: 135 total,   7 running, 128 sleeping,   0 stopped,   0 zombie

Cpu(s): 17.1%us, 39.1%sy,  0.0%ni, 43.3%id,  0.0%wa,  0.0%hi,  0.1%si,  0.4%st

Mem:   4099296k total,  3947360k used,   151936k free,   327268k buffers

Swap:  4194296k total,    12696k used,  4181600k free,  2088576k cached


  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND

 1901 aflhmood  20   0  394m  77m  50m R 34.5  1.9   0:03.31 httpd

 1847 aflhmood  20   0  396m  75m  46m R 21.6  1.9   0:04.02 httpd

 1940 aflhmood  20   0  401m  88m  57m R 21.6  2.2   0:03.51 httpd

 1899 aflhmood  20   0  395m  69m  41m R 20.9  1.7   0:01.98 httpd

 1904 aflhmood  20   0  398m  84m  54m R 20.9  2.1   0:03.37 httpd

 1943 aflhmood  20   0  393m  68m  42m R 20.9  1.7   0:02.69 httpd

24193 mysql     20   0 1780m 588m 9156 S  2.7 14.7   3:23.51 mysqld


[/code]

For some reason, the CPU load is quite high. I think caching in not working optimally.


Cache performance output (I dont know how to read the output since I have nothing to compare with)


Store requests when used as an application cache.

PluginResultSetGet - HitGet - MissDelete
File cacheTested0.09930.02150.00770.0106
MemcacheInvalid plugin----
MemcachedInvalid plugin----
MongoDBInvalid plugin----
Session cacheUnsupported mode----
Static request cacheUnsupported mode----

Store requests when used as a session cache.

PluginResultSetGet - HitGet - MissDelete
File cacheTested0.09060.02090.00750.0106
MemcacheInvalid plugin----
MemcachedInvalid plugin----
MongoDBInvalid plugin----
Session cacheTested0.00020.00010.00010.0003
Static request cacheUnsupported mode----

Store requests when used as a request cache.

PluginResultSetGet - HitGet - MissDelete
File cacheUnsupported mode----
MemcacheInvalid plugin----
MemcachedInvalid plugin----
MongoDBInvalid plugin----
Session cacheUnsupported mode----
Static request cacheTested0.00020.00010.00010.0001

Any help is welcome!
Average of ratings: -
In reply to Ju Groen

Re: Moodle slow after upgrade to 2.9.3+

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
The first line of the 'top' is missing. It should show the load average. Alternatively, 'uptime' will print that.

Yes, httpd (Apache2?) processes between 20% to 35% CPU are too much for a Xeon e5-2630. This is a root (physical) server, right?