General help

 
 
Picture of michael denigan
Moodle 2.3.1 Very slow page loading times
 

Using Moodle 2.3.1 and I'm finding the page load times painfully slow. It is a new site with no content. Any ideas what may be causing this and is there a fix?
Michael

 
Average of ratings: -
Picture of Visvanath Ratnaweera
Re: Moodle 2.3.1 Very slow page loading times
Group Particularly helpful Moodlers
Hi

All the initial pointers are documented in the introduction to the "Hardware and Performance" forum: http://moodle.org/mod/forum/view.php?id=596.

If that didn't help you may post all the information requested there and results of your initial investigations in the H&P forum.
 
Average of ratings: -
Picture of Gavin Henrick
Re: Moodle 2.3.1 Very slow page loading times
Group Moodle Course Creator Certificate holdersGroup Testers

HI Michael,

What are you running it on? Is the server busy, is it a dedicated machine, is it configured and optimised for Moodle? as per performance doc

You say it has no content, have you added a custom theme or code yet?

And what do you mean by slow? 3 seconds? 10? more?

And which pages, is it all pages or some?

 
Average of ratings: -
Picture of michael denigan
Re: Moodle 2.3.1 Very slow page loading times
 

Hi Gavin

Thanks for your quick response. The install is with Bluehost on a reseller account (shared hosting). I cant imagine there has been any optimisation done for Moodle. That's what I trying to find out now. The intial theme was Rocket and I thought this may have been causing the problem so I changed it to Leatherbound with made no difference. No course material has been added. When I contacted BH support they confirmed that page load times were very slow (around 18 seconds)and suggested that it was a script in Moodle that was causing the issue. BH tested the page here: http://gtmetrix.com/reports/www.bea-distance-learning.org/TFMO6XqP

Gavin you mention "optimised for Moodle? as per performance doc" ....where do I find this?

Just of interest, I have a Chamilo LMS install on the same account which loads very fast.

Thanks for your help

Michael

 
Average of ratings: -
Picture of Marcus Green
Re: Moodle 2.3.1 Very slow page loading times
Group Particularly helpful Moodlers

I pay £50 a year for Linux hosting from an outfit that does not specialise in Moodle. 

I have had 18 students taking a quiz on Moodle 2.3 and the performance is acceptable. There is something odd about either your install or your hosting.

Have you tried running the Firefox Developer tool bar, turn off Javascript processing and see what the performance is like then . The idea is to eliminate client side scripting as a source of the problem, not to recommend you run without it as standard.

 
Average of ratings: -
Picture of Ken Task
Re: Moodle 2.3.1 Very slow page loading times
Group Particularly helpful Moodlers

Pardon the intrusion ... by chance is the Designer Mode turned on in Themes?

From the setting:

"Normally all theme images and style sheets are cached in browsers and on the server for a very long time, for performance. If you are designing themes or developing code then you probably want to turn this mode on so that you are not served cached versions. Warning: this will make your site slower for all users! Alternatively, you can also reset the theme caches manually from the Theme selection page."

How about Enable CSS optimizer?

From the setting:

"When enabled CSS will be run through an optimisation process before being cached. The optimiser processes the CSS removing duplicate rules and styles, as well as white space removable and reformatting. Please note turning this on at the same time as theme designer mode is awful for performance but will help theme designers create optimised CSS."

Running FireBug at your site shows many 'styles_debug.php' hits.

If they are on, turn off, then clear theme caches.

'spirit of sharing', Ken

 
Average of ratings: -
Picture of Paul Nijbakker
Re: Moodle 2.3.1 Very slow page loading times
Group Particularly helpful Moodlers

Hi Michael,

You might be having this issue: http://tracker.moodle.org/browse/MDL-34328

Rgrds,
Paul.

 
Average of ratings: -
Picture of michael denigan
Re: Moodle 2.3.1 Very slow page loading times
 

Thank you Paul and  everyone who has contributed to this thread.

I have tried all the suggestions and there has been no difference to the load times. This is really unfortunate as the school really did want the features available in Moodle, but the unresponsiveness means that will we have to wait and see what happens with future updates. As I mentioned in a previous message, we also have a Chamilo 1.9 install running on the same reseller account which is very fast. There is definitely something here that needs a fix and same issue has been mentioned in other threads on this and other forums.

If you have any other suggestions on how to fix the very slow page load times I would love to hear from you.

P.S. I have a local copy of 2.4 (alpha version) locally installed which is running beautifully. I would like to install it experimentally on a BlueHost reseller account to see out it runs. I can only locate a prepackaged Moodle windows installer that includes XAMPP. Is there a just a Moodle only package available so I can FTP it?

Thanks for your help.

 
Average of ratings: -
Picture of Paul Nijbakker
Re: Moodle 2.3.1 Very slow page loading times
Group Particularly helpful Moodlers

Hi Michael,

We are battling with the same phenomenon. With Mozilla Firefox a larger course page with editing on loads in 20 seconds in my slower machine and 8 in my faster one. Internet Explorer gets stuck when I try that. Moodle.org itself has been rather slow lately, so perhaps they are suffering from the same effect.

The fix proposed in the tracker link above (at the moemnt of writing) does not improve loading times for us. Blocking the drag and drop function does improve loading times, so it seems that at least part of the problem is related to that. However, I find that in my present production site I cannot seem to turn it off anymore (i.e. I turn off the option in the Experimental settings, but the drag and drop still box still shows up everywhere and drag and dropping still works, even after I purge all cache).

Rgrds,
Paul.

 
Average of ratings: -
Picture of michael denigan
Re: Moodle 2.3.1 Very slow page loading times
 

These are the setting in my php config. Is there anything here I should change?

PHP 5.3 (Single php.ini) I have selected this as 5.3 is a requirement for Moodle 2.3

Do I need to add any of the following extensions?

Http
Imagick
Magick Wand
Mail Parse
OAuth
OCI8
Upload Progress
IonCube
SourceGuardian

 
Average of ratings:Useful (1)
Picture of Homar Sanchez
Re: Moodle 2.3.1 Very slow page loading times
 

Hi Michael, did you figure it out? Regards! Homar.

 
Average of ratings: -
Picture of madhu bheemagani
Re: Moodle 2.3.1 Very slow page loading times
 

can you please check in all browsers once?

 
Average of ratings: -
Picture of Paul Nijbakker
Try this
Group Particularly helpful Moodlers

Hi all,

Via the Moodle Tracker I got a tip that really made a big difference in our site. We had already upgraded to the latest release of 2.3.1 which resulted in some performance improvement, but a simple setting seems to have been responsible for a large part of the slow page loading in our case:

See if you have Open in new window turned on in Site Administration > Appearance > Moodle docs. We had it turned on (seemed harmless) and reverting to the default No resulted in a substantial improvement in page loading times.

Others also report that turning off Show all courses in Site Administration > Appearance > Navigation has a discernible effect on performance.

Page loading is still slow in Internet Explorer, though, but it is better than it getting totally stuck.

Rgrds,
Paul.

 
Average of ratings: -