Moodle running very slow

Moodle running very slow

от David Gilpin -
Number of replies: 10

Hi,

I've been using moodle for a very long time and used to do manual installation and upgrades.  Recently, my hosting provider talked me into installing moodle using installatron in order to take advantage of the automatic upgrades which sounded great to me.

Everything started out wonderful.  The site ran smoothly, but recently the server began to run very slow to the point it is unusable with more than 10 simultaneous users.  The engineer for my hosting company has been trying to fix it but has come up empty handed.

Anyone else have this issue with a moodle install via Installatron?  Any advice to resolve this would be greatly appreciated!

In reply to David Gilpin

Moodle running very slow

от Ken Task -
Снимка на Particularly helpful Moodlers

Upgraded from what version of moodle to what version of moodle?

What has engineer tried?

Sent you a pm and left message at your school.

'SoS', Ken

In reply to Ken Task

Moodle running very slow

от David Gilpin -

Hi Ken,

Thanks for your help!  It was a clean install using Installatron.  Moodle 5.02 is the version installed.  

I think he is trying different things on the server side to try to improve performance, php settings, memory upgrade, storage etc. 

I'll try to get a list of things he has tried.  It is weird, it seems that it is getting worse every day.

I'll give you a call after school if that is ok with you.

David

In reply to David Gilpin

Moodle running very slow

от Visvanath Ratnaweera -
Снимка на Particularly helpful Moodlers Снимка на Translators
Does he know about moodle.org, specifically the Hardware and performance forum and its documentation on Performance and the Performance FAQ?
In reply to Visvanath Ratnaweera

Moodle running very slow

от Ken Task -
Снимка на Particularly helpful Moodlers

The OP or the engineer?   No matter ... we are going to have a conference.   From what I saw, no moodle document covers the issue.

OP does have a semi-fixed site running git as of this evening, however ... just need some tweaks to the mariadb now.

Oh, yeah discovered Installertron sets up the data directory inside moodle code in a hidden data directory ... looks like .bunchofrandomletttersnumbers-data ... notice the 'dot' in front?

Makes the site backup easier but large backup ... and if OP ever changed back to documented non-git ways for updating/upgrading a moodle, and didn't know about the hidden data directory, site could be toast.

'SoS', Ken

In reply to Ken Task

Moodle running very slow

от Visvanath Ratnaweera -
Снимка на Particularly helpful Moodlers Снимка на Translators
> The OP or the engineer?

Well the OP was happy until the hosting provider took over the control, who then gave the control to an automatic installation and then an engineer took over the control. Whoever is in control, knows the Moodle Docs, I assume.
In reply to Visvanath Ratnaweera

Moodle running very slow

от Ken Task -
Снимка на Particularly helpful Moodlers

Not sure 'give up control' is accurate description.  OP is in K12 world ... which is not like what you know Mr. V!   OP is in a state of US that has an entity that provides services/servers for schools - they do have engineers on staff but seldom do they get involved with a school unless called upon.  OP has a WHM/cPanel setup ... the caddie of such hosting.   OP was pitched 'automatic updating of moodle' by Installertron folks.   He decided to try it.   It failed.   Am guessing site restored and that's when things got slow.

Engineer called in to fix ... that person isn't that well versed in Moodle's.  And we know, that Moodle is senstive about many things ... little things that add up.

Ok, now that you have the story ... some details ... WHM/cPanel setup had Easy Apache - a misnomer really as that deals with PHP versions + PHP extensions + PHP settings of the PHP chosen for a service.  PHP version to run version of Moodle was ok but settings were not ...  max_allowed_packets - not set high enough.   The other item which is why the meeting with Engineer ... config of MariaDB.  A moodle set to use localhost should be using sockets not TCP/IP stack for communications between apps and DB's.  And sockets don't really need the encryption (TLS certs) during communications.   Those 2 would slow a moodle down.  A mysqltuner install and run showed Innodb buffer pools and data size settings needed be tweaked upwards a little.  Had to run tuner with DB user in config.php of site which was not root user.  Thus the report not as good as it should be ... again, another reason to bring in the Engineer.

While in that server via WHM Terminal - ie, root - did setup the site with the only 'easy button' known to work ... that of git versioning and with a couple of shell scripts ... one to backup the site (OP confessed wasn't doing that often) ... and one to update Moodle version when OP is ready ... easily ... with the 'easy button' of git.

So there ya have it! усмивка

'SoS', Ken

In reply to Ken Task

Moodle running very slow

от Visvanath Ratnaweera -
Снимка на Particularly helpful Moodlers Снимка на Translators
OK, you have direct information. I didn't think much of the "conference" you mentioned. I'm leaving the room.  Not unwillingly, you know that I don't digest Softaculous, Installatron, WHM and the like. And haven't forgotten your own story of an education provider in a US state.
 
Wishing the engineer good luck..
In reply to David Gilpin

Moodle running very slow

от saakshi bhatia -

I’ve seen similar slowdowns with Moodle installs done via auto-installers, not just Installatron specifically. It’s usually not the installer itself, but the default settings that come with it.

You  can few things worth checking:

*   Cron jobs: This affect Moodle performance.

*   Caching: Enable OPcache, Redis/Memcached if available.

*   PHP configuration: The memory limit is set higher for Moodle.

*   Database: If database queries are slow or not indexed, this will cause problems for a large number of users.

*   Theme and plugins: Some plugins can cause significant performance degradation.