How to enhance the FCP and LCP performance factors in my site?

How to enhance the FCP and LCP performance factors in my site?

by Naaman Fallouh -
Number of replies: 15

Hi,

I'm running Moodle 3.10, with custom theme Edumy, the performance test is giving (F) as a mark using the gtmatrix.com website.

The a attached snap shows the summary and performance results.

How can I enhance this performance?

Regards.

Attachment test-performance.png
Attachment test-summary.png
Average of ratings: -
In reply to Naaman Fallouh

Re: How to enhance the FCP and LCP performance factors in my site?

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've not encountered gtmatrix.com.

Is your site slow? I mean, do you and your users find it slow - which is all that really matters?
In reply to Howard Miller

Re: How to enhance the FCP and LCP performance factors in my site?

by Naaman Fallouh -
Hi,
Yes, It's really slow.
It's taking more than 10 seconds to load a public category page (without login needed).
Please try it at:
https://adce.svuonline.org
In reply to Naaman Fallouh

Ri: Re: How to enhance the FCP and LCP performance factors in my site?

by Sergio Rabellino -
Picture of Particularly helpful Moodlers Picture of Plugin developers
To be honest, your site is going pretty well. I'm connecting from Italy.
Average of ratings:Useful (1)
In reply to Naaman Fallouh

Re: How to enhance the FCP and LCP performance factors in my site?

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Seems ok to me... but that's quite a theme. What's it doing when it's showing that "loading" animation for a couple of seconds. That's not Moodle.
Average of ratings:Useful (1)
In reply to Naaman Fallouh

Re: How to enhance the FCP and LCP performance factors in my site?

by Ken Task -
Picture of Particularly helpful Moodlers

That tool you are using ... did you purchase usage or did you look at their freebie?   If you looked at your site via freebie the location of the scanner was from Canada ... and browser emulation was Chrome.

How many hops away to that scanner is your server?

'SoS', Ken


In reply to Ken Task

Re: How to enhance the FCP and LCP performance factors in my site?

by Naaman Fallouh -
I'm using the free test, it has a paid option.
Don't think the scanner location is the point, I tried other free services and gave, almost, the same evaluation, include: PageSpeed and WebPageTest. 
 
In reply to Naaman Fallouh

Re: How to enhance the FCP and LCP performance factors in my site?

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Optimising Moodle performance is complex and specialist. It can depend heavily on what activities users are using, caching, and importantly the hardware setup. So on one site adding more RAM can improve performance, but on an another it might not help. Caching is very important in configuration. As Howard says, is your site slow. What parts are slow and what parts of slow matter to you.
In reply to Marcus Green

Re: How to enhance the FCP and LCP performance factors in my site?

by Naaman Fallouh -

Mainly, rendering the pages is the most concerning issue.

The server is 32 GB RAM, and 10 CPU Cores. 

OS is Debian 10 with apache 2.4 (mpm_event) + mariaDB + php7. 3 fpm. 

For caching, I'm using redis cache on the same machine. 

In reply to Naaman Fallouh

Re: How to enhance the FCP and LCP performance factors in my site?

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Is your file storage on the same machine?

Have you checked Redis is working? You get monitoring tools that show that it's actually storing stuff.

Is Apache and MariaDB configured to use the available RAM (by default, Apache tends to use too much and MariaDB too little)
In reply to Howard Miller

Re: How to enhance the FCP and LCP performance factors in my site?

by Naaman Fallouh -
Yes, Redis server is working and storing data.
According to the Apache and MariaDB, they are configured according to the Moodle performance recommendation in the Docs.
In reply to Naaman Fallouh

Re: How to enhance the FCP and LCP performance factors in my site?

by Naaman Fallouh -
Scanning tools are suggesting loading the JS files with defer or async flag.
They claim this might save decent blocking time!
How harmful might be to experiment this suggestion?
In reply to Naaman Fallouh

Re: How to enhance the FCP and LCP performance factors in my site?

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Did you solve your previous problem: Viewing the log of a user or an activity is consuming the CPU and hanging the server! They seem to be related.
In reply to Visvanath Ratnaweera

Re: How to enhance the FCP and LCP performance factors in my site?

by Naaman Fallouh -
Unfortunately I didn't, it still appears sad
 
The one here is on another instance.
In reply to Naaman Fallouh

Re: How to enhance the FCP and LCP performance factors in my site?

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
That could be the cause of the poor performance you observed above. I would follow up it further and get it solved first - you have received lot of pointers there.