Last updated
Last updated
There are many factors and variables that come into play and might be the cause when experiencing slow loading times. Here are a few things to look into before starting to look into the code:
Review the /etc/httpd/conf.d/000-elentra.conf
file and ensure that the MaxRequestWorkers and ServerLimit is 512. (this is step 24 in )
Enable Slow Query Log and check the log for issues with queries taking too long
Ensure your version of MySQL or MariaDB is supported
Check the size of your elentra_me
database. As the database gets larger, queries will take longer to execute and might need to be optimized
Ensure that your MariaDB/MySQL in /etc/my.cnf.d/elentra.cnf
configuration matches the suggestions in the documentations here:
The innodb_buffer_pool_size
should be as big as the size of the elentra_me
database. Example: If your database is 6GB and you have enough memory on the database server, it should be 6GB as well, providing you have enough RAM
Ensure table_open_cache
is set to 4000
Ensure table_definition_cache
is set to 1800
Set max_connections
to 512 (if it's currently commented out)
Set vm.swappiness
to 1 on your database server: sudo sysctl -w vm.swappiness=1