Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Not a bug
-
Affects Version/s: 1.9
-
Fix Version/s: None
-
Component/s: Database activity module
-
Labels:None
-
Environment:This behaviour has been see in my environment: SuSe Linux 10.1 running MySQL v5.0.26, php v5.1.2 and Joann Poock's ebvironment: Windows Server 2003 running MySQL v4.1.22, and php v4.4.0.
-
Database:MySQL
-
Affected Branches:MOODLE_19_STABLE
Description
After an upgrade of our instance of Moodle from 1.8 to 1.9 (Build 20080423) a very simple database, created with the "database Module" in V1.8, with 8 text fields and 12 records takes 12.4 seconds to move between one record and the next one in Single View. In a slightly larger database of about 50 fields and 120 records, the time is up to 30s
To investigate this behaviour I opened one of the simple databases we have created using the database module in v1.8. I then went to Single View and attempted to move from one record to the next. On the server I used Top (http://linux.about.com/od/commands/l/blcmdl1_top.htm) to watch the processes and the % of CPU usage each process is using. The process "mysql-max" hogs the processor and it peaks at 100% for the duration of any activity related to the database created using the Database module.
It may take up to 30 seconds before processor usage by mysql-max returns to <1%. No other activity in Moodle has the same effect - for example opening a "survey" shows mysql-max taking 1% of the processor's capacity.
Another user, Joann Poock, has also seen this behaviour - for Joann the server effectively hangs whenever she does anything related to displaying and organising data created using the Database Module. The only way she can resolve the "hang" is by re-booting the server. Joann reports that the problem affects databases created using the Database module in v1.9 as well as those created in v1.8.
Neither Joann nor I find any other functionality of our instances of Moodle are impared after upgrading from 1.8 to 1.9
Ian
OK, that's odd.
You can see http://moodle.org/modules for an example of a perfectly fast Database activity with quite a few records so the reported problem is not endemic.
Something else is going on ... perhaps a tuning problem. Your system might be running out of memory during this operation and the operating system is paging.
Can you post your MySQL configuration (my.cnf) as well as information about your CPU and RAM?