VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: MKI-Miro on June 09, 2017, 15:24:46 PM

Title: Big performance problem
Post by: MKI-Miro on June 09, 2017, 15:24:46 PM
Hi

I have two almost identical websites

tiens-usa.com and tiens.sk  both Joomla 3.7.2 and vm 3.2.2 and they are on the same server

The performance of the first one has rapidly go down (dont know why and dont know exact day).
For example they both have 96 products, but when i want to open admin page with list of products the first one throws error that memory limit 256mb has exceeded.

What can I provide you more to get answer?

They both have same components like Akeeba, JCE.

Thanks
Title: Re: Big performance problem
Post by: Studio 42 on June 09, 2017, 17:10:21 PM
First try to change memory limit to 512 in your admin panel.
Are the 2 websites on the same server ?
Title: Re: Big performance problem
Post by: MKI-Miro on June 09, 2017, 18:38:18 PM
Yes websites are on the same server and max memory limit 256mb

I copy website to localhost and increased to 512 and it works ... very very long loading but working

Both sites uses php 7.0
Title: Re: Big performance problem
Post by: MKI-Miro on June 09, 2017, 21:37:22 PM
Time: 2.33 ms / 2.33 ms Memory: 0.060 MB / 0.42 MB Application: afterLoad
Time: 45.14 ms / 47.46 ms Memory: 2.078 MB / 2.50 MB Application: afterInitialise
Time: 4.82 ms / 52.28 ms Memory: 0.139 MB / 2.63 MB Application: afterRoute
Time: 751.80 ms / 804.08 ms Memory: 1.310 MB / 3.94 MB Application: beforeRenderComponent com_content
Time: 5.53 ms / 809.61 ms Memory: 0.175 MB / 4.12 MB Application: Before JAccess::preloadComponents (all components)
Time: 15.50 ms / 825.11 ms Memory: 0.067 MB / 4.19 MB Application: After JAccess::preloadComponents (all components)
Time: 0.12 ms / 825.23 ms Memory: 0.000 MB / 4.18 MB Application: Before JAccess::preloadPermissions (com_content)
Time: 2.93 ms / 828.16 ms Memory: 0.178 MB / 4.36 MB Application: After JAccess::preloadPermissions (com_content)
Time: 0.10 ms / 828.25 ms Memory: 0.000 MB / 4.35 MB Application: Before JAccess::getAssetRules (id:69 name:com_content.category.8)
Time: 0.61 ms / 828.86 ms Memory: 0.009 MB / 4.36 MB Application: After JAccess::getAssetRules (id:69 name:com_content.category.8)
Time: 3.39 ms / 832.25 ms Memory: 0.109 MB / 4.47 MB Application: Before JAccess::getAssetRules (id:8 name:com_content)
Time: 0.21 ms / 832.46 ms Memory: 0.007 MB / 4.48 MB Application: After JAccess::getAssetRules (id:8 name:com_content)
Time: 875.36 ms / 1707.82 ms Memory: 0.782 MB / 5.26 MB Application: afterRenderComponent com_content
Time: 10.61 ms / 1718.43 ms Memory: 0.070 MB / 5.33 MB Application: afterDispatch
Time: 682.89 ms / 2401.32 ms Memory: 0.149 MB / 5.48 MB Application: beforeRenderModule mod_menu (Main Menu US)
Time: 6.74 ms / 2408.05 ms Memory: 0.215 MB / 5.69 MB Application: Before JAccess::getAssetRules (id:1 name:root.1)
Time: 0.12 ms / 2408.18 ms Memory: 0.007 MB / 5.70 MB Application: After JAccess::getAssetRules (id:1 name:root.1)
Time: 0.08 ms / 2408.26 ms Memory: 0.001 MB / 5.70 MB Application: Before JAccess::getAssetRules (id:54 name:com_virtuemart)
Time: 0.04 ms / 2408.30 ms Memory: 0.002 MB / 5.70 MB Application: After JAccess::getAssetRules (id:54 name:com_virtuemart)
Time: 632.19 ms / 3040.49 ms Memory: 0.067 MB / 5.77 MB Application: afterRenderModule mod_menu (Main Menu US)
Time: 707.44 ms / 3747.93 ms Memory: 0.000 MB / 5.77 MB Application: beforeRenderModule mod_menu (Products)
Time: 693.32 ms / 4441.25 ms Memory: 0.064 MB / 5.83 MB Application: afterRenderModule mod_menu (Products)
Time: 716.62 ms / 5157.86 ms Memory: 0.000 MB / 5.83 MB Application: beforeRenderModule mod_menu (Effervescent Tablets)
Time: 684.46 ms / 5842.33 ms Memory: 0.008 MB / 5.84 MB Application: afterRenderModule mod_menu (Effervescent Tablets)
Time: 682.10 ms / 6524.43 ms Memory: 0.000 MB / 5.84 MB Application: beforeRenderModule mod_menu (Energy Bracelets)
Time: 680.98 ms / 7205.41 ms Memory: 0.019 MB / 5.86 MB Application: afterRenderModule mod_menu (Energy Bracelets)
Time: 581.61 ms / 7787.02 ms Memory: 0.000 MB / 5.85 MB Application: beforeRenderModule mod_menu (Toothpastes)
Time: 619.69 ms / 8406.72 ms Memory: 0.021 MB / 5.87 MB Application: afterRenderModule mod_menu (Toothpastes)
Time: 759.82 ms / 9166.53 ms Memory: 0.000 MB / 5.87 MB Application: beforeRenderModule mod_menu (Cleanser)
Time: 1.22 ms / 9167.76 ms Memory: 0.040 MB / 5.91 MB Application: afterRenderModule mod_menu (Cleanser)
Time: 696.08 ms / 9863.84 ms Memory: 0.000 MB / 5.88 MB Application: beforeRenderModule mod_menu (Sanitary Napkins)
Time: 775.01 ms / 10638.85 ms Memory: 0.019 MB / 5.90 MB Application: afterRenderModule mod_menu (Sanitary Napkins)
Time: 672.18 ms / 11311.03 ms Memory: 0.000 MB / 5.89 MB Application: beforeRenderModule mod_menu (Aprotie Circe)
Time: 565.70 ms / 11876.73 ms Memory: 0.014 MB / 5.91 MB Application: afterRenderModule mod_menu (Aprotie Circe)
Time: 734.94 ms / 12611.67 ms Memory: 0.001 MB / 5.91 MB Application: beforeRenderModule mod_menu (Aprotie Organics)
Time: 1.37 ms / 12613.04 ms Memory: 0.040 MB / 5.95 MB Application: afterRenderModule mod_menu (Aprotie Organics)
Time: 738.20 ms / 13351.25 ms Memory: 0.000 MB / 5.91 MB Application: beforeRenderModule mod_menu (Oils and Syrups)
Time: 715.23 ms / 14066.48 ms Memory: 0.023 MB / 5.93 MB Application: afterRenderModule mod_menu (Oils and Syrups)
Time: 566.82 ms / 14633.30 ms Memory: 0.000 MB / 5.93 MB Application: beforeRenderModule mod_menu (SPAKARE)
Time: 198.22 ms / 14831.51 ms Memory: 0.019 MB / 5.95 MB Application: afterRenderModule mod_menu (SPAKARE)
Time: 169.83 ms / 15001.35 ms Memory: 0.000 MB / 5.95 MB Application: beforeRenderModule mod_menu (TS Facial Masks)
Time: 197.00 ms / 15198.34 ms Memory: 0.012 MB / 5.96 MB Application: afterRenderModule mod_menu (TS Facial Masks)
Time: 174.96 ms / 15373.31 ms Memory: 0.000 MB / 5.96 MB Application: beforeRenderModule mod_virtuemart_search (Search)
Time: 174.41 ms / 15547.71 ms Memory: 0.042 MB / 6.00 MB Application: afterRenderModule mod_virtuemart_search (Search)
Time: 540.04 ms / 16087.76 ms Memory: 0.000 MB / 5.98 MB Application: beforeRenderModule mod_virtuemart_currencies (Currency)
Time: 11.50 ms / 16099.25 ms Memory: 0.385 MB / 6.36 MB Application: afterRenderModule mod_virtuemart_currencies (Currency)
Time: 1.41 ms / 16100.66 ms Memory: 0.002 MB / 6.37 MB Application: beforeRenderModule mod_virtuemart_cart (Shopping cart)
Time: 75.61 ms / 16176.28 ms Memory: 1.858 MB / 8.22 MB Application: afterRenderModule mod_virtuemart_cart (Shopping cart)
Title: Re: Big performance problem
Post by: Studio 42 on June 11, 2017, 11:13:15 AM
Quote from: MKI-Miro link=topic=137722.msg482413#msg482413
Time: 75.61 ms / 16176.28 ms Memory: 1.858 MB / 8.22 MB Application: afterRenderModule mod_virtuemart_cart (Shopping cart)
Are the cart full of product in 1 shop ?
Try to delete all the products in cart
Title: Re: Big performance problem
Post by: MKI-Miro on June 11, 2017, 11:19:44 AM
cart is empty ...
Title: Re: Big performance problem
Post by: jjk on June 11, 2017, 23:25:53 PM
If you have the Firefox browser, you can use the Firefox plugin 'Firebug' and within this the 'Net' tab to check what is loading too slow.
In the frontend you are loading a lot of external stuff and images which are too big and have to be scaled down before they display. Perhaps some of those slow down the backend, too.
Title: Re: Big performance problem
Post by: MKI-Miro on June 12, 2017, 07:16:23 AM
There should be something else

PErformance was good until .... dont know what

I tried to make clean install joomla, virtuemart and few components than switched db to original and performance is now perfect...
Title: Re: Big performance problem
Post by: GJC Web Design on June 12, 2017, 10:51:59 AM
Ah .. then only you can know what changed.. code / extensions don't write / install themselves
Title: Re: Big performance problem
Post by: MKI-Miro on June 12, 2017, 12:23:11 PM
There was nothing special just well known components like akeeba and jce
Title: Re: Big performance problem
Post by: GJC Web Design on June 12, 2017, 19:09:47 PM
add in the ext. till it slows..

do this on a subfolder on the server then u know your comparing like for like
Title: Re: Big performance problem
Post by: MKI-Miro on June 23, 2017, 12:58:13 PM
i have found that when i change cache from memcache  to database and file then sites goes quick

but after some time website gets slow and again i change cache to memcache and site goes quick

but why?
Title: Re: Big performance problem
Post by: Studio 42 on June 23, 2017, 16:19:14 PM
If you use PHP7, disable memcache in Joomla and if you have many products, then try to completly disable the cache or use SSD on your server.
Title: Re: Big performance problem
Post by: MKI-Miro on June 23, 2017, 16:38:21 PM
are there any recommendations for 5.6, 7.0, 7.1 ?