News:

Support the VirtueMart project and become a member

Main Menu

Big performance problem

Started by MKI-Miro, June 09, 2017, 15:24:46 PM

Previous topic - Next topic

MKI-Miro

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

Studio 42

First try to change memory limit to 512 in your admin panel.
Are the 2 websites on the same server ?

MKI-Miro

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

MKI-Miro

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)

Studio 42

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

MKI-Miro


jjk

#6
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.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

MKI-Miro

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...

GJC Web Design

Ah .. then only you can know what changed.. code / extensions don't write / install themselves
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

MKI-Miro

There was nothing special just well known components like akeeba and jce

GJC Web Design

add in the ext. till it slows..

do this on a subfolder on the server then u know your comparing like for like
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

MKI-Miro

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?

Studio 42

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.

MKI-Miro

are there any recommendations for 5.6, 7.0, 7.1 ?