I have 10 different courses in a Moodle 2.1.4 installation. Just one course is being a pain and is very slow to load for Admin but seems ok for teacher & student. I have listed the performance info from the footer below, as well as the same info for a course that seems okay.
Any ideas what might be causing this?:
Very slow course 1 to load as Admin:
same course 1 as Teacher:
Other similar course 2 that loads okay as Admin:
- high load averages. There are requests of 189% to 389% of what the machine can handle.
But that may not be your immediate problem, since under 389% load a comparable request took less than 5% time when it was under 246% load.
- the very high memory usage of the slow request: 636 MB compared to 16 - 18 MB.
Again with today available memory 636 MB is not a big deal, still you must find out why. Possibly a huge data structure gets loaded to RAM. Is this a virtual machine by any chance?
In any case, provide more information about your setup. The kind of useful information is explained in the introduction to this forum.
I'm sure youve tried these but worth a mention
- reload the course
- test admin from alternate pc / location
- have a different admin test the same
How consistent is this?
- it always takes longer then 15+ seconds to load?
Thank you so much for your suggestions.
I have restored the course* (see below) and tried a different Admin account and also a different PC, location and browser! The problem is consistent and always takes 15+seconds to load.
BUT I think I may have found a temporary solution
Here is the solution that I have just found that I think has cured the problem for now. If I turn the course cctivity completion settings off i.e. Course Admin > Edit settings > Student progress > Completion tracking > Disabled... then my course loads in the expected time (approx 1 second).
My hypothesis is that for my course with 350+ users in it the Course completion and/or the Activity completion reports or some other associated logs are being generated, most Moodle users might not notice with 12, 20, 30 students in a typical course(?) but for my course with lots of students this seems to be a problem. BUT it only seems to affect Admin and not the Teacher role.
*One other piece of evidence that may be worth considering is that with the course restored, without the users, the course is still slow if Completion tracking is enabled, which is strange.
So although I have "cured" my problem it is not resolved as it now means I can't use the completion tracking which is a great new feature in Moodle 2.
Any comments? Anyone else noticed this problem?
Well honestly at this stage I would likely already checking the linux server logs and processes.
If you have to test this in a live environment I recommend doing so when you have very few users online, ideally none. (easier to read the logs and follow what is happening)
Clear your log.
Reload the page which is loading in 15+ seconds.
Review the log, look for issues. If you are lucky something might pop out at you. Possibly even compare with one of the other fast loading pages.
Sorry, this is really only an option if you have SSH access and at least a basic understanding of Linux.
- Have you tested this in Moodle 2.2?
Completion tracking > Disabled... then my course loads in the expected time (approx 1 second).
I cannot reproduce this on my Moodle 2.2+ servers. All load times are very similar. With completion tracking enabled.