Timeouts during an exam

Re: Timeouts during an exam

by Danishka Navin -
Number of replies: 6

noticed that processattempt.php?cmid=25 take more than 30s

Attachment Screenshot from 2019-01-18 09-29-03.png
In reply to Danishka Navin

Re: Timeouts during an exam

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

What counts is what the server is doing during that time. 

In reply to Howard Miller

Re: Timeouts during an exam

by Danishka Navin -

you mean process count?

I can't exactly remember but this was happened when only one user accessing moodle.



In reply to Danishka Navin

Re: Timeouts during an exam

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I mean *everything*. What have you in place to monitor server activity?

In reply to Howard Miller

Re: Timeouts during an exam

by Danishka Navin -
In reply to Danishka Navin

Re: Timeouts during an exam

by Danishka Navin -

Connections        218  
Threads_cached     2    
Threads_connected  5    
Threads_created    14   
Threads_running    1 


Opened_tables 108

Opened_tables 421

Uptime: 1759  Threads: 13  Questions: 6776  Slow queries: 0  Opens: 87  Flush tables: 1  Open tables: 81  Queries per second avg: 3.85


Please note that I could not collect my details when the incident happened (at that time system was booted using USB drive instead of local disk).



Above stats from same moodle system but on a VM with 1.5GB RAM and Single core CPU and only single user on moodle.

I am planning to reproduce the same issue within next few days.

It would be great if you can mention what stats may specially required in terms of moodle issues.


DB: Mariadb 10.2


Btw, why disk InnoDB disk writes instead of reads during a exam where user just moving one question to another without selecting an answer?

Is that due to moodle keep writing current working page/question?


This server suppose to serve users 20-50 at a time.

I highly appreciate if you can mention any recommended configuration available.





In reply to Danishka Navin

Re: Timeouts during an exam

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

"Please note that I could not collect my details when the incident happened (at that time system was booted using USB drive instead of local disk)."

:-O

Is it just me that thinks that might have been the problem...

The point is to look at every bit of information you can find while reproducing the incident and see if anything jumps out. It's not very scientific - but that's the place to start.