We were hosting our LMS Moodle 4.3+ on a server, equipped with an Intel Xeon E3-1275V6 Processor and 64 GB RAM, 2 x 480GB storage. During peak hours, the site typically sees 25-30 active users. On average, 10 users access the site simultaneously.
We are experiencing an issue where the Moodle application becomes unresponsive for 10-15 minutes (on average). The page continuously tries to load and after 10-15 minutes of non-responsiveness, either the page finally loads or it displays a "Gateway Time out" error message. It should be noted that the maximum execution time for a php script is 60 seconds. This issue persists even during off-peak hours when there are a maximum of 10 users online. The server stats also show that resources are plentiful, indicating that this issue is not related to server performance. It is likely a problem with the Moodle application itself.
We noticed that the system was running quite smoothly until we moved to Moodle 4.2 and particularly to 4.3+. Yesterday we upgraded to 4.32 (the latest version) but it seems that the same issue persists.
Can anyone guide what might be the issue and how can we debug and fix it? Thank you!