Our course is getting slow day by day. By using https://rpm.newrelic.com/, have monitored Moodle performance, where I came across a result that on rendering a page, 'core_renderer' is taking max time as compared to all other activities. And under 'core_render', 'generate_sections_and_activities' is taking most of time as shown in attachment. These are core files of, being called once and twice on every page. Still unable to find any thing.
Details of servers are as follow
Moodle version: 3.3.2
DB Server:
CPU: Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz
RAM: 1020MiB
Web Server:
Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz
RAM: 2044MiB
Do you guys have any suggestions about how to go and fix this as i am out of ideas?
Thanks in advance.