Moodle application takes too much time to load.

Moodle application takes too much time to load.

by Sunny Adhatrao -
Number of replies: 3

Hi,

Suddenly Moodle application takes too much time to load. 

Takes time to load on the login page and after the admin clicks the on-site administrator page.

For the last two months, there is no change in code done, but given quizzes for 1600 employees on particular two days. 

And already 6000 employees taking another one course which has no end date.

Is there any solution?


Average of ratings: -
In reply to Sunny Adhatrao

Re: Moodle application takes too much time to load.

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Moving to Hardware and Performance.

You'll need to start by explaining how your Moodle is hosted and what server software you have? What version of Moodle?

How slow is slow? 

What, if anything, have you done to investigate this?

Given it happened after an event that would have added quite a lot to your database - is the database working properly / have enough resource / been optimised?

Is Debugging on (if not, switch it on)? Is anything (interesting) in the logs?
In reply to Sunny Adhatrao

Re: Moodle application takes too much time to load.

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Apart from what Howard already said, study the forum documentation, https://docs.moodle.org/en/Performance and https://docs.moodle.org/en/Performance_FAQ.

Also, could you elaborate on "For the last two months, there is no change in code done", meaning you have been doing code changes? What does 'git status' say when run in the main code directory (where the config.php is)?

Talking of history saw this Continuously coming session timeout popup after 1 minute from June 2022. Has it been resolved? If so, please post a summary in that thread so that you can start here on a clean sheet. If not, dive in to it, the current performance problem could be related/the result of it.
In reply to Visvanath Ratnaweera

Re: Moodle application takes too much time to load.

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
A session timeout rather implies that you are using something that *can* timeout (e.g. Redis). It's usually a symptom of a problem, rather than the problem itself. The usual is trying to open a second tab in the browser when the first Moodle tab has already 'hung'.