Hardware and performance

 
 
Picture of Jason [Moodle Enthusiast]
Is this amount of files correct? - performance increase help please
 

Hello Everyone,

I need a bit of assistance to increase the preformance of my moodle install.

THE SERVER WE USE:
Godaddy virtual dedicated
3gig ram
up to 16 processors
apache on centos
php:  5.4.7
mysql5.5.28

 

--------------------------------------------------------

PERFORMANCE AND PAGE INFO OUTPUT TO FOOTER FOR ONE PAGE LOAD:

130.666189 secs 
RAM: 37.3MB 
RAM peak: 37.4MB 
Included 675 files Contexts for which filters were loaded: 10 
Filters created: 10 
Pieces of content filtered: 2 
Strings filtered: 236get_string calls: 6924 strings
mem cache hits: 6854 
strings disk cache hits: 14
 Included YUI modules: 54 
Other JavaScript modules: 2 DB reads/writes: 233/5 ticks: 13067
user: 164 sys: 32 cuser: 0 csys: 0 Load average: 1.49 Session: 22.9KB
This page is: General type: admin. Context System (context id 1). Page type admin-setting-debugging.
---------------------------------------------------------------------------------------------------------------------
 
This message explaining the performance is a bit daunting considering to create one page the server must provide almost 35MB of information to the user...this seems very high.
 
Is there anything I can do to improve this situation?
 
 
Average of ratings:Useful (1)
Picture of Jason [Moodle Enthusiast]
Re: Is this amount of files correct? - performance increase help please
 

here is a little more info, can anyone help?

 

Current Memory Usage
             total       used       free     shared    buffers     cached
Mem:       3145728    1298000    1847728          0          0          0
-/+ buffers/cache:    1298000    1847728
Swap:            0          0          0
Total:     3145728    1298000    1847728

 

Current Disk Usage
Filesystem            Size  Used Avail Use% Mounted on
/dev/vzfs              90G  6.1G   84G   7% /
none   
 
Average of ratings: -
Picture of Jason [Moodle Enthusiast]
Re: Is this amount of files correct? - performance increase help please
 

more info, i just got this error while attempting to delete a course

 

 

Timed out while waiting for session lock.
Wait for your current requests to finish and try again later.

Stack trace:
  • line 1308 of /lib/dml/mysqli_native_moodle_database.php: dml_sessionwait_exception thrown
  • line 593 of /lib/sessionlib.php: call to mysqli_native_moodle_database->get_session_lock()
  • line ? of unknownfile: call to database_session->handler_read()
  • line 184 of /lib/sessionlib.php: call to session_start()
  • line 473 of /lib/sessionlib.php: call to session_stub->__construct()
  • line 60 of /lib/sessionlib.php: call to database_session->__construct()
  • line 692 of /lib/setup.php: call to session_get_instance()
  • line 27 of /config.php: call to require_once()
  • line 28 of /course/category.php: call to require_once()
 
Average of ratings: -
Picture of Jason [Moodle Enthusiast]
Re: Is this amount of files correct? - performance increase help please
 

another error after a course failed to delete

 

Coding error detected, it must be fixed by a programmer: PHP catchable fatal error

Debug info: Argument 2 passed to has_capability() must be an instance of context, boolean given, called in /home/safeftp/public_html/learn/lib/modinfolib.php on line 999 and defined
Stack trace:
  • line 365 of /lib/setuplib.php: coding_exception thrown
  • line 348 of /lib/accesslib.php: call to default_error_handler()
  • line 999 of /lib/modinfolib.php: call to has_capability()
  • line 980 of /lib/modinfolib.php: call to cm_info->update_user_visible()
  • line 272 of /lib/modinfolib.php: call to cm_info->obtain_dynamic_data()
  • line 1109 of /lib/modinfolib.php: call to course_modinfo->__construct()
  • line 1013 of /lib/completionlib.php: call to get_fast_modinfo()
  • line 47 of /report/progress/lib.php: call to completion_info->get_activities()
  • line 2319 of /lib/navigationlib.php: call to report_progress_extend_navigation_course()
  • line 1152 of /lib/navigationlib.php: call to global_navigation->add_course_essentials()
  • line 2679 of /lib/navigationlib.php: call to global_navigation->initialise()
  • line 659 of /lib/pagelib.php: call to navbar->has_items()
  • line 3 of /theme/darkb/layout/general.php: call to moodle_page->has_navbar()
  • line 685 of /lib/outputrenderers.php: call to include()
  • line 637 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 99 of /backup/backup.php: call to core_renderer->header()
 
Average of ratings: -
Picture of Visvanath Ratnaweera
Re: Is this amount of files correct? - performance increase help please
Group Particularly helpful Moodlers
Hi Jason

Since nobody answered, I give a try. FYI Godaddy is not my type (see "Go Daddy! (Where to?)" https://moodle.org/mod/forum/discuss.php?d=193106 ).

> Godaddy virtual dedicated
> 3gig ram
> up to 16 processors
> apache on centos
> php: 5.4.7
> mysql: 5.5.28

The "Deluxe" VPS in http://www.godaddy.com/hosting/vps-hosting.aspx?ci=9013 ?

> PERFORMANCE AND PAGE INFO OUTPUT TO FOOTER FOR ONE PAGE LOAD:
> 130.666189 secs

Over 2 minutes? That's joke!

> RAM: 37.3MB
> RAM peak: 37.4MB

Normal.

> Included 675 files Contexts

That number is growing at an alarming rate, but 660 has been reported https://moodle.org/mod/forum/discuss.php?d=209142#p913232.

> for which filters were loaded: 10
> Filters created: 10
> Pieces of content filtered: 2

10 filters have found 2 pieces of text? What were they looking for?

> Strings filtered: 236 get_string calls: 6924 strings

Another area of inflation: See "How to conduct quiz for 15-20 thousand student in Moodle 2.3" https://moodle.org/mod/forum/discuss.php?d=220185#p957950.

> mem cache hits: 6854
> strings disk cache hits: 14

Looks ok.

> Included YUI modules: 54

Did you mention the Moodle version? I've noticed that various versions of thie YUI getting accumulated in later Moodle 2.x series.

> Other JavaScript modules: 2 DB reads/writes: 233/5 ticks: 13067
> user: 164 sys: 32 cuser: 0 csys: 0 Load average: 1.49 Session: 22.9KB

Load average 1.49 is high, ideally should be less than 1.0, but not in a critical range.

> This page is: General type: admin. Context System (context id 1). Page type admin-setting-debugging.

The admin user creates more overhead. Still should not slow down to 2 min.

What are those 10 filters? Any contributed filters (non-core)? Can you try deactivating them?
 
Average of ratings: -