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

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

av Naaman Fallouh -
Antall svar: 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.

Vedlegg test-performance.png
Vedlegg test-summary.png
Gjennomsnittlig vurdering: -
Som svar til Naaman Fallouh

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

av Howard Miller -
Bilde av Core developers Bilde av Documentation writers Bilde av Particularly helpful Moodlers Bilde av Peer reviewers Bilde av 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?
Som svar til Howard Miller

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

av 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
Som svar til Naaman Fallouh

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

av Sergio Rabellino -
Bilde av Particularly helpful Moodlers Bilde av Plugin developers
To be honest, your site is going pretty well. I'm connecting from Italy.
Gjennomsnittlig vurdering:Useful (1)
Som svar til Naaman Fallouh

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

av Howard Miller -
Bilde av Core developers Bilde av Documentation writers Bilde av Particularly helpful Moodlers Bilde av Peer reviewers Bilde av 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.
Gjennomsnittlig vurdering:Useful (1)
Som svar til Naaman Fallouh

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

av Ken Task -
Bilde av 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


Som svar til Ken Task

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

av 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. 
 
Som svar til Naaman Fallouh

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

av Marcus Green -
Bilde av Core developers Bilde av Particularly helpful Moodlers Bilde av Plugin developers Bilde av 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.
Som svar til Marcus Green

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

av 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. 

Som svar til Naaman Fallouh

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

av Howard Miller -
Bilde av Core developers Bilde av Documentation writers Bilde av Particularly helpful Moodlers Bilde av Peer reviewers Bilde av 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)
Som svar til Howard Miller

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

av 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.
Som svar til Naaman Fallouh

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

av 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?
Som svar til Naaman Fallouh

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

av Visvanath Ratnaweera -
Bilde av Particularly helpful Moodlers Bilde av 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.
Som svar til Visvanath Ratnaweera

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

av Naaman Fallouh -
Unfortunately I didn't, it still appears trist
 
The one here is on another instance.
Som svar til Naaman Fallouh

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

av Visvanath Ratnaweera -
Bilde av Particularly helpful Moodlers Bilde av 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.