Learning Path Loading is very slow

Moderator: Coursenligne

Learning Path Loading is very slow

Postby StephenHenry » Wed May 23, 2012 2:11 pm

I have a fresh installation of 1.8.8.2 and the loading of pages in the learning path is very slow. I'm using documents from the documents folder, and it takes about 60 seconds to load the next page, even if it's just text without images.

The symptom still shows up with a clean installation with only 2 documents in the learning path. Any ideas on what's causing it to be so slow? Other site navigation is at appropriate speed.

Steve
StephenHenry
 
Posts: 8
Joined: Tue May 22, 2012 6:51 pm

Re: Learning Path Loading is very slow

Postby ywarnier » Thu May 24, 2012 2:53 pm

Hi Steve,

First things first, you shouldn't use 1.8.8.2 as a "fresh" installation as 1.8.8.4 is available and has a series of bugs and security fixes.

Loading pages in the learning path can depend on *many* things. As you say the pages are just text+images, then there should not be much JavaScript involved. Do you have a lot of different items in a single learning path or in the combination of all learning paths in this course?
ywarnier
 
Posts: 983
Joined: Wed Dec 16, 2009 3:12 pm

Re: Learning Path Loading is very slow

Postby StephenHenry » Wed Jun 06, 2012 12:02 am

I'm getting the same result with 1.8.8.4 as well, and that's what's in my production environment. I installed another virgin install with Simple Scripts which was still loaded with x.2. In the test environment I only have 2 things in the learning path, and text with no images, and it's still slow to load the pages in the learning path. Everything else in the site navigation seems to load at an appropriate speed.

Steve
StephenHenry
 
Posts: 8
Joined: Tue May 22, 2012 6:51 pm

Re: Learning Path Loading is very slow

Postby adeschenes » Thu Jun 07, 2012 12:27 am

Hi Stephen,

Get a look on this, that may helps you ?

PHP configuration
To get the best of Chamilo, you need to finetune PHP settings. Consider :

Editing php.ini file (on windows can be located at C:\xampp\php\php.ini, on Ubuntu Linux : /etc/php5/apache2/php.ini
search the word "max" and increase values to optimise the server
we recommend the following values :

max_execution_time = 300; Maximum execution time of each script, in seconds
max_input_time = 600; Maximum amount of time each script may spend parsing request data
memory_limit = 256M; Maximum amount of memory a script may consume (128MB)
post_max_size = 64M;
upload_max_filesize = 100M;

Some users could meet problems if their PHP settings don't fit these ones:

short_open_tag = Off
safe_mode = Off
magic_quotes_gpc = On
magic_quotes_runtime = Off

Past Chamilo versions required register_globals to be set to On. This is no longer necessary, this can be set to Off and Chamilo will work fine. It is considered a bad choice in terms of security to set register_globals to On.

Note: if you are using PHP 5.3 or higher, you need to set your date.timezone setting to whatever your server's timezone is. For example, if your server is in the 'America/New_York' timezone, set this in your php.ini:

date.timezone = 'America/New_York'


You can adjust those parameters via .htaccess or php.ini, depends of your server.

So, for now, I'm testing 1.9.0 Alpha release, and I can tell you, it is much more fast with the new configuration of tables on DB ;-)

Kind regards,

Alain
adeschenes
 
Posts: 452
Joined: Fri Mar 05, 2010 6:33 pm
Location: Québec, Canada


Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 2 guests

Learning Path Loading is very slow

Moderator: Coursenligne

Learning Path Loading is very slow

Postby StephenHenry » Wed May 23, 2012 2:11 pm

I have a fresh installation of 1.8.8.2 and the loading of pages in the learning path is very slow. I'm using documents from the documents folder, and it takes about 60 seconds to load the next page, even if it's just text without images.

The symptom still shows up with a clean installation with only 2 documents in the learning path. Any ideas on what's causing it to be so slow? Other site navigation is at appropriate speed.

Steve
StephenHenry
 
Posts: 8
Joined: Tue May 22, 2012 6:51 pm

Re: Learning Path Loading is very slow

Postby ywarnier » Thu May 24, 2012 2:53 pm

Hi Steve,

First things first, you shouldn't use 1.8.8.2 as a "fresh" installation as 1.8.8.4 is available and has a series of bugs and security fixes.

Loading pages in the learning path can depend on *many* things. As you say the pages are just text+images, then there should not be much JavaScript involved. Do you have a lot of different items in a single learning path or in the combination of all learning paths in this course?
ywarnier
 
Posts: 983
Joined: Wed Dec 16, 2009 3:12 pm

Re: Learning Path Loading is very slow

Postby StephenHenry » Wed Jun 06, 2012 12:02 am

I'm getting the same result with 1.8.8.4 as well, and that's what's in my production environment. I installed another virgin install with Simple Scripts which was still loaded with x.2. In the test environment I only have 2 things in the learning path, and text with no images, and it's still slow to load the pages in the learning path. Everything else in the site navigation seems to load at an appropriate speed.

Steve
StephenHenry
 
Posts: 8
Joined: Tue May 22, 2012 6:51 pm

Re: Learning Path Loading is very slow

Postby adeschenes » Thu Jun 07, 2012 12:27 am

Hi Stephen,

Get a look on this, that may helps you ?

PHP configuration
To get the best of Chamilo, you need to finetune PHP settings. Consider :

Editing php.ini file (on windows can be located at C:\xampp\php\php.ini, on Ubuntu Linux : /etc/php5/apache2/php.ini
search the word "max" and increase values to optimise the server
we recommend the following values :

max_execution_time = 300; Maximum execution time of each script, in seconds
max_input_time = 600; Maximum amount of time each script may spend parsing request data
memory_limit = 256M; Maximum amount of memory a script may consume (128MB)
post_max_size = 64M;
upload_max_filesize = 100M;

Some users could meet problems if their PHP settings don't fit these ones:

short_open_tag = Off
safe_mode = Off
magic_quotes_gpc = On
magic_quotes_runtime = Off

Past Chamilo versions required register_globals to be set to On. This is no longer necessary, this can be set to Off and Chamilo will work fine. It is considered a bad choice in terms of security to set register_globals to On.

Note: if you are using PHP 5.3 or higher, you need to set your date.timezone setting to whatever your server's timezone is. For example, if your server is in the 'America/New_York' timezone, set this in your php.ini:

date.timezone = 'America/New_York'


You can adjust those parameters via .htaccess or php.ini, depends of your server.

So, for now, I'm testing 1.9.0 Alpha release, and I can tell you, it is much more fast with the new configuration of tables on DB ;-)

Kind regards,

Alain
adeschenes
 
Posts: 452
Joined: Fri Mar 05, 2010 6:33 pm
Location: Québec, Canada


Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 2 guests

Social network

Youtube

Subscribe to our newsletter

Leave us your e-mail in the box below, then make sure you approve the confirmation e-mail you will receive

 


 

Upcoming events