Using Magento 2.3 and after some extensive digging, it seems that either fotorama or another that loads the images on product list and product page runs several instances of PHP-FPM all at high usage, if there are a few photos on the product it can sometimes hang and keep loading. I then have to restart the PHP-FPM service for the page to load properly with the images.
The server is a VPS, running 16GB RAM and 6 Core CPU.
What should i be looking for next to fix this?
1 Answer 1
These some solution for this case, you can check.
- Disable Signed content (Don't need for developer mode) - insert into core_config_data (scope, scope_id, path, value) values ('default',0, 'dev/static/sign', 0); 
- Make sure you have used SSD for store Magento 2 Source Code. 
- Make sure you have used the latest MySQL version. 
- You are developing, please enable developer mode and doing step 1. 
- If your site got too many products, please run - php bin/magento catalog:image:resize
- The suggestion is Use Redis cache and saves the session to DB or Redis 
- 
 Thank you Hoang, since you wrote this i have done the following: Upgraded the server from centos 6 to 7, installed Litespeed enterprise alongside LiteMage and have noticed a slight improvement in image loading times but not huge. The catalog:image:resize has been running now for 23 hours currently on 30650 / 96454....will wait for it to finish and report back. :)Mehdi Rafiai– Mehdi Rafiai2019年02月24日 10:04:31 +00:00Commented Feb 24, 2019 at 10:04
- 
 Let us know what did the trick!snh_nl– snh_nl2019年04月22日 12:58:44 +00:00Commented Apr 22, 2019 at 12:58
- 
 3He is probably still waiting for catalog:image:resize to finish.Liam Mitchell– Liam Mitchell2019年06月12日 22:07:01 +00:00Commented Jun 12, 2019 at 22:07