New Moodle installation performing slow

New Moodle installation performing slow

Ian Cockram -
回帖数:7

Moodle novice trying to install Moodle 3.8.2 on windows server. PHP 7. MariaDB.

Navigating Moodle takes around 30 seconds from page to page for some reason? Have run a benchmark test, but not sure how I can resolve the issues? 

benchmark


Chrome benchmark (navigating to moodle dashboard):

Chrome benchmark


Any help would be greatly appreciated!

Ian

回复Ian Cockram

Re: New Moodle installation performing slow

Howard Miller -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像
Where is your 'moodledata' storage? From the benchmark figures, I'm going to guess that it's on some terribly slow shared storage. Failing that, you are using a VM with a really bad file subsystem (although this is rare these days).

Anyway.... this leaves you with a couple of choices. Get (much) faster storage or (simpler) set up a Redis cache server and point the Moodle Cache (MUC) and sessions at that. If you want to do the latter I can provide more details if you need them.
回复Howard Miller

Re: New Moodle installation performing slow

Ian Cockram -
Hi,

moodledata storage is located at the root of our web hosting, and the moodle installation is in the public folder. This is all held with our BT business web hosting account.

Would it be a case of moving the moodledata folder or the latter? If the latter, could you point me in the right direction to set up Redis cache if you think this would solve the issue?

Thanks!
回复Ian Cockram

Re: New Moodle installation performing slow

Howard Miller -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像
Firstly, I don't know anything about Windows so I can only speak generally.

Even the config.php load time is very slow. This points to very slow disk performance on your hosting so it's never going to be ideal for Moodle. I would be thinking about better hosting, however...

Regarding caching, it sounds like memcached is easier to install on Windows (e.g. https://docs.kony.com/konylibrary/konyfabric/kony_fabric_manual_install_guide/Content/Install_Memcached_Server.htm).

Once you have this working you can start by configuring the MUC to point to that rather than writing the cache to your slow filesystem (as it is now). See https://docs.moodle.org/38/en/Caching#The_cache_configuration_screen

Let us know how you get on.
回复Howard Miller

Re: New Moodle installation performing slow

Ian Cockram -
Okay thanks for the feedback.

It might be a case of switching hosting providers as this is a current topic regarding company website performance also.

I would be out of depth regarding installing memcached etc. to be honest.
回复Ian Cockram

Re: New Moodle installation performing slow

Ken Task -
Particularly helpful Moodlers的头像

2 additional cents on new hosting .... use Linux! 微笑  even if it's not your 'native tongue'!!!

'SoS', Ken

回复Ken Task

Re: New Moodle installation performing slow

Howard Miller -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像
Moodle can certainly be made to work on Windows but expertise in these forums is thin on the ground - if that influences anybody 眨眼
回复Ian Cockram

Re: New Moodle installation performing slow

Visvanath Ratnaweera -
Particularly helpful Moodlers的头像 Translators的头像

No Windows person either. But the Moodle Benchmark is neutral and quite clear in your case. Writing to moodledata is 25 times slower than the allowed limit! (All the measurements are time.) I don't know what the "root of a web hosting" means, but way too slow for Moodle. No cache can compensate that.