Or, for a longer version, see "HEADS UP: Moodle 2.9 and minor versions coming next week" in the General Developer forum https://moodle.org/mod/forum/discuss.php?d=313040.
;-P
Visvanath Ratnaweera
Posts made by Visvanath Ratnaweera
Did you check the documentation, https://docs.moodle.org/en/Video for example?
There were two similar discussion:
- "limiting number of concurrent users Moodle 1.9.9+"
https://moodle.org/mod/forum/discuss.php?d=192787
No conclusion.
- "Limit number of users logged in moodle."
https://moodle.org/mod/forum/discuss.php?d=156510
Apparently all you need is a "(quite simple) core hack".

P.S. I would say, this topic touches "Hardware and performance".
- "limiting number of concurrent users Moodle 1.9.9+"
https://moodle.org/mod/forum/discuss.php?d=192787
No conclusion.
- "Limit number of users logged in moodle."
https://moodle.org/mod/forum/discuss.php?d=156510
Apparently all you need is a "(quite simple) core hack".
P.S. I would say, this topic touches "Hardware and performance".
Hi Frankle Lee 李智高
Thanks for providing those information.
> I conduct all my 600-user-final exams on moodle 2.6 not 1.9
I knew that. The point i wanted to bring was that your server might handle close to 1000 users taking the same exam if you were running Moodle 1.9. Note that this discussion is about Moodle 1.9.
> It seems to me that 50MB ram for every user is quit true to my situation, so I guess more than 60Gb ram should be OK for 1000 users.
Your argument is that, since your machine handle close to 600 users with 32 GB, raising it to 64 GB it might reach 1000 users. Possible, if the RAM was and will remain the bottle neck. That is why I asked about monitoring.
> And of course, it also depends on the CPU, Cache, and harddisk speed. More Powerful CPU, faster Cache and SSD will help to reduce the ram requirement.
Generally true. But you will notice the difference only if you help the bottle neck.
> The last question, all my 600 students will login and click start quiz then load the first page of questions within a period of 3-5 minutes.
>
> The loading time at the beginning will last longer, sometimes over 30 seconds,
Your machine is very powerful, I must say. Still 30 sec can make an examination candidate nervous. There were various tricks discussed in this forum to flatten the initial peak, like delaying each computer room by 5 min, and/or assigning the exam a very long password, ...
> but once the quiz has began, the loading time for the next page will be much faster because of the clicking time for next page would be various for different users.
Yes, that is to be expected. Also because the various caches continue "learning".
All that said, you are trying to put a cap on the number of users:
Is there a way to limit the number of online users for a moodle site?
https://moodle.org/mod/forum/discuss.php?d=317711
Is it related in any way?
Thanks for providing those information.
> I conduct all my 600-user-final exams on moodle 2.6 not 1.9
I knew that. The point i wanted to bring was that your server might handle close to 1000 users taking the same exam if you were running Moodle 1.9. Note that this discussion is about Moodle 1.9.
> It seems to me that 50MB ram for every user is quit true to my situation, so I guess more than 60Gb ram should be OK for 1000 users.
Your argument is that, since your machine handle close to 600 users with 32 GB, raising it to 64 GB it might reach 1000 users. Possible, if the RAM was and will remain the bottle neck. That is why I asked about monitoring.
> And of course, it also depends on the CPU, Cache, and harddisk speed. More Powerful CPU, faster Cache and SSD will help to reduce the ram requirement.
Generally true. But you will notice the difference only if you help the bottle neck.
> The last question, all my 600 students will login and click start quiz then load the first page of questions within a period of 3-5 minutes.
>
> The loading time at the beginning will last longer, sometimes over 30 seconds,
Your machine is very powerful, I must say. Still 30 sec can make an examination candidate nervous. There were various tricks discussed in this forum to flatten the initial peak, like delaying each computer room by 5 min, and/or assigning the exam a very long password, ...
> but once the quiz has began, the loading time for the next page will be much faster because of the clicking time for next page would be various for different users.
Yes, that is to be expected. Also because the various caches continue "learning".
All that said, you are trying to put a cap on the number of users:
Is there a way to limit the number of online users for a moodle site?
https://moodle.org/mod/forum/discuss.php?d=317711
Is it related in any way?
This is how you move a whole Moodle site from one server to another:
https://docs.moodle.org/en/Moodle_migration
https://docs.moodle.org/en/Moodle_migration