Elgg 3.0.2 vs elgg 2.3.3 ten times slower page load

I upgraded plugins for elgg 3.0.2 and it is working now but it is slow.

For example if you open : https://arsites.appsolutemobile.eu/sites/ar
- it needs ~7seconds at least to load (elgg 3.0.2).

But if you try to open: https://www.almanacar.com
- it loads much faster (elgg 2.3).

Do you know what might be the cause?

Is elgg 3 really much slower?

Or should I set some rules with installation on the server?

Br, Vlad

  • It's an incorrect comparison. Test on servers with similar configuration, with similar settings on the site, plugins, etc.

  • Elgg 3.0 can be slower, but it shouldn't be by much.

    But please keep in mind Elgg 2.3 has had several years of performance tweaking. With the new code base for Elgg 3.0 there are issues to be fixed for sure.

    Maybe some of the plugins on your installation don't yet use the correct features of Elgg 3.0 be be faster. Or you need to check the site settings have a look at http://learn.elgg.org/en/stable/admin/performance.html

  • I will check a little bit more. 

    I will turn off each plugin up to Basic default elgg Installation to see If IT is up to code in a plugin.

    I have elgg 1.12 with php 5.6 on the same server and with same plugins and the speed of page load is comparable with www.almanacar.com server.

    My concern is If v3 has to be Set or programed differently or If IT is really slower than v2.3

     

    thx for now

    vlad

  • I will check a little bit more. 

    I will turn off each plugin up to Basic default elgg Installation to see If IT is up to code in a plugin.

    I have elgg 1.12 with php 5.6 on the same server and with same plugins and the speed of page load is comparable with www.almanacar.com server.

    My concern is If v3 has to be Set or programed differently or If IT is really slower than v2.3

     

    thx for now

    vlad

  • Starting point: testing without ANY 3rd party plugins.

    Still slow? Any errors showing up in the error log or browser console?

    Still slow? Maybe MySQL server settings need some adjustments. Elgg 3 uses the Innodb DB engine as opposed to the Mysqlsam engine used by Elgg 1.x/2.x. There are some different MySQL settings specfically for Innodb engine available (to be set for example in my.cnf on the server). Maybe it's necessary to increase some buffer sizes to get a better performance (to avoid harddisc accesses). If you ask me I would fully agree that the Elgg 3 docs are lacking some (basic) info what might be useful with regard to MySQL server config as opposed to Elgg 2 MySQL config (or some simple general advice).... https://github.com/Elgg/Elgg/issues/12383.

  • It's probably AMD modules loading at the last second. Even the CKEditor takes a long time to load when I was developing my plugins.

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking