VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: cleancut on July 27, 2015, 10:57:27 AM

Title: Category results slow, but Latest products fast
Post by: cleancut on July 27, 2015, 10:57:27 AM
Hi,

Our site runs on a 10 core server with 12 gb memory. Its fast enough to power a VM store with 1200 products.

PROBLEM:
The site takes about 5-6 seconds to load a category result with 20 products (when pagination is set higher it takes even longer...)

COMPARE:
But when clicking the core module 'latest products' it loads 60 products in only 2 seconds.

SOLUTION?
Why is my VM so incredibly slow and does anybody have an idea as to why?


TEST LINK LATEST PRODUCTS:
http://www.cleancut.se/produktnyheter

TEST LINK CATEGORY:
http://www.cleancut.se/butik/knivserier/global-2-serier/global


Thanks for looking guys,
Chris
ca@cleancut.se

Title: Re: Category results slow, but Latest products fast
Post by: Studio 42 on July 27, 2015, 14:21:48 PM
Hi,
Please give more info :
-Vm & Joomla revision.
- plugins in use.
- active modules.
- Template framework.
Only with correct settings, your site with 1200 products, have to display 20 product in 1 second max(with 2 cores and 4gb memory).

1: do a test with Joomla default template.
2: do a test in a category, not using custom plugins, related categories and products.
3: activate Joomla debug mode, and check your queries and memory in use.

When i see this in your HTML header, i have half of answer:
<link rel="stylesheet" href="/components/com_virtuemart/assets/css/jquery.fancybox-1.3.4.css?vmver=8643" type="text/css" />
  <link rel="stylesheet" href="/components/com_virtuemart/assets/css/chosen.css?vmver=8643" type="text/css" />
  <link rel="stylesheet" href="/media/system/css/modal.css" type="text/css" />
  <link rel="stylesheet" href="/media/cms/css/debug.css" type="text/css" />
  <link rel="stylesheet" href="http://www.cleancut.se/templates/cleancut/css/bootstrap.css" type="text/css" />
  <link rel="stylesheet" href="http://www.cleancut.se/templates/cleancut/css/bootstrap_responsive.css" type="text/css" />
  <link rel="stylesheet" href="http://www.cleancut.se/templates/cleancut/css/template.css" type="text/css" />
  <link rel="stylesheet" href="http://www.cleancut.se/templates/cleancut/css/extensions.css" type="text/css" />
  <link rel="stylesheet" href="http://www.cleancut.se/templates/cleancut/css/animated-buttons.css" type="text/css" />
  <link rel="stylesheet" href="http://www.cleancut.se/templates/cleancut/css/style1.css" type="text/css" />
  <link rel="stylesheet" href="http://www.cleancut.se/templates/cleancut/css/custom.css" type="text/css" />
  <link rel="stylesheet" href="http://www.cleancut.se/templates/cleancut/css/template_responsive.css" type="text/css" />
  <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:600italic,400,300,600,700&amp;subset=latin,latin-ext" type="text/css" />
  <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Oswald:300&amp;subset=latin,latin-ext" type="text/css" />
  <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto" type="text/css" />
  <link rel="stylesheet" href="http://www.cleancut.se/cache/tpl-cleancut/custom_css_c37a0f32d5ae110d4cc0320ba5fba16c.css" type="text/css" />
  <link rel="stylesheet" href="/modules/mod_phoca_vm_category_mobile/assets/style.css" type="text/css" />
  <link rel="stylesheet" href="/modules/mod_phoca_vm_category_mobile/assets/custom.css" type="text/css" />
  <link rel="stylesheet" href="/modules/mod_phoca_vm_category/assets/style.css" type="text/css" />
  <link rel="stylesheet" href="/modules/mod_phoca_vm_category/assets/custom.css" type="text/css" />


Try to optimise your loading script and CSS, i won 3 secondes in a customer site only on minify and group the css and javascripts !

check your pagespeed here : https://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fwww.cleancut.se%2Fbutik%2Fknivserier%2Fglobal-2-serier%2Fglobal
I was thinking i cannot find a site having a page speed < 40, but your have 36/100. It is very bad, mean your site is not optimised and the problem is not only Virtuemart or Joomla!

Regards,
Patrick
Title: Re: Category results slow, but Latest products fast
Post by: cleancut on July 27, 2015, 15:10:23 PM
thanks alot for looking.

Joomla! 3.3.6 Stable
VirtueMart 3.0.3

Modules are all core modules + DJ-MediaTools Album (which is probably not to blame since all non-product pages are loading fast)

Plugins are all core plugins.

Will definately look at code structure. Thanks for the tip!
Title: Re: Category results slow, but Latest products fast
Post by: jenkinhill on July 27, 2015, 15:17:19 PM
Joomla & VirtueMart versions are well out of date and insecure.    http://forum.virtuemart.net/index.php?topic=118683.0

Current would be J3.4.3 and VM3.0.9.4
Title: Re: Category results slow, but Latest products fast
Post by: Studio 42 on July 27, 2015, 15:33:15 PM
Hi jenkill,
The full site have to be optimise, update.
VirtueMart 3.0.3 is the first problem but not only(server settings, CSS, image size ...)
Title: Re: Category results slow, but Latest products fast
Post by: jenkinhill on July 27, 2015, 17:44:08 PM
Yes, bad case of template bloat, too many products on a page and maybe a badly optimised server. But waste of time fixing the speed only to find the site gets hacked  ;-)