Slow Site Loading Speed

Hello, please tell me what can be done with the slow speed of loading the site. We had a speed of 75-85% in PageSpeed Insights. To date, we have a very slow loading speed of the main page ~54%, the speed of categories ~40%, the speed of the product card ~55-63%. The speed in the mobile version is even worse than 30%. The main reason is "Reduce the server response time (time to receive the first byte)".
Please tell me how to solve the problem with the speed of the site.
Thanks for supporting me.
https://rio001.com/ru/

go to siteground mate im very happy with them...

check

https://mariedore.gr/

https://rocanatomica.gr/

also add cloudflare

Thanks for the answer, we installed cloudflare from amazon aws, but we have it icons "class icon" arrows when not images, all these icons are made into squares. Images began to load faster, but the site itself is still slowly loaded.
Please tell me how to fix it.

go to siteground mate im very happy with them...

check

https://mariedore.gr/

https://rocanatomica.gr/

also add cloudflare

go to siteground mate im very happy with them...

check

https://mariedore.gr/

https://rocanatomica.gr/

also add cloudflare

Not to be rude, but your site is not particularly fast or optimized: https://gtmetrix.com/reports/mariedore.gr/muRWKxXP

Hello, please tell me what can be done with the slow speed of loading the site. We had a speed of 75-85% in PageSpeed Insights. To date, we have a very slow loading speed of the main page ~54%, the speed of categories ~40%, the speed of the product card ~55-63%. The speed in the mobile version is even worse than 30%. The main reason is "Reduce the server response time (time to receive the first byte)".
Please tell me how to solve the problem with the speed of the site.
Thanks for supporting me.

We really need to know more about your server in order to give you advice on this. But one of the things that can improve things the most is switching to php-fpm, for example. Did you already ask your host for help?

We really need to know more about your server in order to give you advice on this. But one of the things that can improve things the most is switching to php-fpm, for example. Did you already ask your host for help?

Also, changing the PHP-Opcache parameters is proven to be a very effective way to optimize your overall performance. Not to mention that having 'permanent' connections to the database will shave off at least 20ms.

Hello, thanks for the answer. Here are the characteristics of our server:

			Processor
		
			6 X QEMU Virtual CPU version 1.5.3 2799.998 MHz
	
	
		
			RAM
		
			1238 / 7987 MiB
	
	
		
			Disk space size
		
			57 / 97.92 GiB
	
	
		
			Paging file (swap)
		
			2047 MiB

			Apache
		
			2.4.25-3+deb9u6
	
	
		
			MySQL
		
			5.5.9999+default
	
	
		
			PHP
		
			7.0.33-0+deb9u2
	
	
		
			Perl
		
			5.24.1-3+deb9u5
	
	
		
			Kernel
		
			4.9.0-8-amd64

We really need to know more about your server in order to give you advice on this. But one of the things that can improve things the most is switching to php-fpm, for example. Did you already ask your host for help?

Also, changing the PHP-Opcache parameters is proven to be a very effective way to optimize your overall performance. Not to mention that having 'permanent' connections to the database will shave off at least 20ms.

We will try to use PHP-fpm and PHP-Opcache as you said.

Hello, thanks for the answer. Here are the characteristics of our server:

Processor 6 X QEMU Virtual CPU version 1.5.3 2799.998 MHz RAM 1238 / 7987 MiB Disk space size 57 / 97.92 GiB Paging file (swap) 2047 MiB

Apache 2.4.25-3+deb9u6 MySQL 5.5.9999+default PHP 7.0.33-0+deb9u2 Perl 5.24.1-3+deb9u5 Kernel 4.9.0-8-amd64

We will try to use PHP-fpm and PHP-Opcache as you said.

Also, upgrading to a newer version of PHP (if you are on the latest version of CS-cart, you can upgrade to 7.2) will give you some performance gain. Furthermore, the processor in your server isnt that fast (Intel Xeon E5-2660), AWS uses Intel Xeon Platinum 8180, which has proven to be much faster in many scenarios.

Thanks for the reply we are using CS-Cart Upgrade version 4.8.2.SP1 - 4.8.2.SP2.

This is the pagespeed response, which reduces the download speed. Please tell me how this can be solved?

Reduce server response time (time to first byte) 6.41 s
The time until the first byte is received indicates the delay after which a response to the request is sent from your server.

Also, upgrading to a newer version of PHP (if you are on the latest version of CS-cart, you can upgrade to 7.2) will give you some performance gain. Furthermore, the processor in your server isnt that fast (Intel Xeon E5-2660), AWS uses Intel Xeon Platinum 8180, which has proven to be much faster in many scenarios.

Prompt what is better to use opcache Settings, at the moment the following settings are used:
[opcache]
opcache.revalidate_freq = 0
opcache.validate_timestamps = 1
opcache.max_accelerated_files = 100000
opcache.memory_consumption = 256
opcache.interned_strings_buffer = 64
opcache.fast_shutdown = 1
realpath_cache_size = 4096k;
realpath_cache_ttl = 1200

Also, upgrading to a newer version of PHP (if you are on the latest version of CS-cart, you can upgrade to 7.2) will give you some performance gain. Furthermore, the processor in your server isnt that fast (Intel Xeon E5-2660), AWS uses Intel Xeon Platinum 8180, which has proven to be much faster in many scenarios.

PHP settings:

```php

short_open_tag = On
error_reporting=E_ALL & ~E_DEPRECATED & ~E_NOTICE & ~E_STRICT
display_errors = Off
log_errors=On
ignore_repeated_errors=On
display_startup_errors = On
cgi.fix_pathinfo = 0
date.timezone = Europe/Moscow
max_input_vars = 10000
pcre.jit = 0
pcre.recursion_limit = 100000
max_execution_time = 200
max_input_time = 200
post_max_size = 1024M
upload_max_filesize = 1024M
memory_limit = 512M
output_buffering = On
1 Like

Hello,

In production environments we use the following opcache configuration, however, do mind that this disables any way to install add-ons in real time. If you make code modifications you will have to reload php-fpm.

zend_extension=opcache
opcache.enable=1
opcache.enable_cli=0
opcache.memory_consumption=512
opcache.interned_strings_buffers=64
opcache.max_accelerated_files=50000
opcache.max_wasted_percentage=5
opcache.use_cwd=1
opcache.validate_timestamps=0
opcache.fast_shutdown=0
opcache.huge_code_pages=1

Kind regards,

Thanks for supporting me. Please tell me, in case of code changes, how to restart php-fpm?
Thanks for the reply.

Hello,

In production environments we use the following opcache configuration, however, do mind that this disables any way to install add-ons in real time. If you make code modifications you will have to reload php-fpm.

zend_extension=opcache
opcache.enable=1
opcache.enable_cli=0
opcache.memory_consumption=512
opcache.interned_strings_buffers=64
opcache.max_accelerated_files=50000
opcache.max_wasted_percentage=5
opcache.use_cwd=1
opcache.validate_timestamps=0
opcache.fast_shutdown=0
opcache.huge_code_pages=1

Kind regards,

As I understand it, we'd better replace all our opcache settings with yours? Or add which we don't have?

Hello,

In production environments we use the following opcache configuration, however, do mind that this disables any way to install add-ons in real time. If you make code modifications you will have to reload php-fpm.

zend_extension=opcache
opcache.enable=1
opcache.enable_cli=0
opcache.memory_consumption=512
opcache.interned_strings_buffers=64
opcache.max_accelerated_files=50000
opcache.max_wasted_percentage=5
opcache.use_cwd=1
opcache.validate_timestamps=0
opcache.fast_shutdown=0
opcache.huge_code_pages=1

Kind regards,

Thanks for supporting me. Please tell me, in case of code changes, how to restart php-fpm?
Thanks for the reply.

Just use something like 'service php-fpm reload'. It depends on your linux distribution.

As I understand it, we'd better replace all our opcache settings with yours? Or add which we don't have?

And if you desire to use persistent connections, you can apply the attached patch.

persistent_db.diff

Thanks for answering. Can you tell us how to install or enable php-fpm on our server? Or can it be installed, how can it be checked?
Thanks for supporting me.

Just use something like 'service php-fpm reload'. It depends on your linux distribution.

Can watch the correct php settings: https://rio001.com/info.php

Can watch the correct php settings: https://rio001.com/info.php

Yeah php-fpm is installed. Try executing the command on the CLI.

Yeah php-fpm is installed. Try executing the command on the CLI.

Thanks for the reply, please tell me, what team are you talking about?

Thanks for the reply, please tell me, what team are you talking about?

Team? As far as I see I didn't even mention a team in this discussion?