Site becomes very slow
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 28
- Joined: 21 May 2019, 09:52
Site becomes very slow
Hi,
My site has become very slow. It takes a longer time than expected to load a single page. It happens randomly, sometimes it takes 30-40 seconds to load the page and sometimes the same page loads in 5-7 seconds. What would be the reason for this and how to fix?
Is this issue related to my older issue which was too many connections issue?
Thanks
Harpal Singh
My site has become very slow. It takes a longer time than expected to load a single page. It happens randomly, sometimes it takes 30-40 seconds to load the page and sometimes the same page loads in 5-7 seconds. What would be the reason for this and how to fix?
Is this issue related to my older issue which was too many connections issue?
Thanks
Harpal Singh
Re: Site becomes very slow
Maybe, Aimeos usually responds in 100ms. Does your madmin_log table contains a lot of entries regarding slow queries?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 28
- Joined: 21 May 2019, 09:52
Re: Site becomes very slow
Hmmm....aimeos wrote:Maybe, Aimeos usually responds in 100ms. Does your madmin_log table contains a lot of entries regarding slow queries?
No there is nothing like any slow query exception in madmin_log.
Re: Site becomes very slow
Then your problem is somewhere else, maybe a misconfiguration of PHP or the web server. Problems you should definitively have a look at because they cause a huge slowdown:
- XDebug enabled
- Files stored on a network file system
- XDebug enabled
- Files stored on a network file system
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 1
- Joined: 02 Jul 2019, 05:32
Re: Site becomes very slow
Hi,
Kindly find below the reasons cause website slow :
- Check your folder size on the server It shouldn't be more than 1.5MB.
- Check and optimize all the images and videos.
- Check JavaScript, Is that Delaying in Page Loading?
- Use CDN files.
- If you're using WordPress, too many plugins can also slow down page speed.
- Lastly, check with your hosting provider.
I hope my answer will help you!!
Kindly find below the reasons cause website slow :
- Check your folder size on the server It shouldn't be more than 1.5MB.
- Check and optimize all the images and videos.
- Check JavaScript, Is that Delaying in Page Loading?
- Use CDN files.
- If you're using WordPress, too many plugins can also slow down page speed.
- Lastly, check with your hosting provider.
I hope my answer will help you!!
-
- Posts: 28
- Joined: 21 May 2019, 09:52
Re: Site becomes very slow
Thanks for your help.damponting wrote:Hi,
Kindly find below the reasons cause website slow :
- Check your folder size on the server It shouldn't be more than 1.5MB.
- Check and optimize all the images and videos.
- Check JavaScript, Is that Delaying in Page Loading?
- Use CDN files.
- If you're using WordPress, too many plugins can also slow down page speed.
- Lastly, check with your hosting provider.
I hope my answer will help you!!
I have also optimized the mysql queries and its working faster than before.
Code: Select all
function getBasketMini(){
$config = app( '\Aimeos\Shop\Base\Context' )->get()->getConfig();
$config->set( 'client/html/catalog/filter/standard/subparts', ['locale/currency'] );
return $params = app( 'Aimeos\Shop\Base\Page' )->getSections( 'mini-cart' );
}
Is there any another way to get minicart html without firing number of queries.
Thanks
Re: Site becomes very slow
The problem is that you fetch the small basket 50+ times instead of only once for some reason because retrieving the small basket itself is done by asking the Laravel session for the data. Maybe there are more queries related to Laravel authentication, etc.
What queries are sent to the database server multiple times?
What queries are sent to the database server multiple times?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star