Try the Demo

Magento Forum

   
Website loading speed - slow html loading
 
RonnyW
Jr. Member
 
Total Posts:  28
Joined:  2012-02-11
Netherlands
 

Who can help me.

I have a webshop running on magento 1.6.2.0.
A VPS server with apache 2.
I have APC and memcache, varnish cache and fooman speedster running.

The main page has acceptabel loading times ...
But when i go to a category page it takes a lot longer ...

But the must waiting time is consumened by waiting on the html page to load ...
See the screenshot.

The loading time is now around 2-5 seconds, but when its busy on the site it can run up to 10-15 seconds ... so much to slow ...

When i take alook with firebug i see the most time of the loadingtime is waiting ...

So my question is, how can i reduce this?

[1]: http://i.stack.imgur.com/UeiNC.png

Image Attachments
Naamloos.png
 
Magento Community Magento Community
Magento Community
Magento Community
 
wiseboost
Jr. Member
 
Avatar
Total Posts:  16
Joined:  2012-04-21
 

Hello,

It’s rather hard to see it, but have you tried PINGDOM ( http://tools.pingdom.com/fpt/ ) to see your website performance ?

It gives 84/100 : http://tools.pingdom.com/fpt/#!/OZlndCPM5/liefstoereigenwijs.nl

In my opinion it’s very good, but maybe you are maxing your hosting capacity (server usage) that’s why it gets to slow down when traffic comes in.

Hope it helps…

 Signature 

WISEBOOST - Give your website a boost!
WEB HOSTING | EXTENSIONS

 
Magento Community Magento Community
Magento Community
Magento Community
 
RonnyW
Jr. Member
 
Total Posts:  28
Joined:  2012-02-11
Netherlands
 

I have tested here too ...

The loads here very fast indeed ...
but yesterday (tested with firebox and firebug) loadingtimes went up to 10-15 seconds ....

the problem lies in the waitingtime from the first load (the html page itself ...)

 
Magento Community Magento Community
Magento Community
Magento Community
 
mattdev_nz
Jr. Member
 
Avatar
Total Posts:  27
Joined:  2010-06-22
New Zealand
 

How much memory do you have ?
How much is available ?
Possibly a mysql config problem

Can you run mysqltuner.pl script and post results ?
wget http://mysqltuner.pl
chmod +x mysqltuner.pl
./mysqltuner.pl

 Signature 

eCommistry.com - Magento Site Development, Magento Performance Optimization

 
Magento Community Magento Community
Magento Community
Magento Community
 
mattdev_nz
Jr. Member
 
Avatar
Total Posts:  27
Joined:  2010-06-22
New Zealand
 

OK I had a second look at this.
Your primary problem is your home page payload ~ of 1.8Mb - your machine will struggle to serve this to every visitor as you do not have Apache’s expires enabled which compounds your problems.

You have well over 1.5Mb of images alone on your home page
Some of these are not at the right size : http://www.liefstoereigenwijs.nl/media/banner-happysocks.png
http://www.liefstoereigenwijs.nl/media/banner-sale.png <-- this is 407Kb alone

Suggest you resize these images, save as jpg’s and optimize for the web.
As an example I have attached - it is now 60Kb instead of the original 407Kb.

Here is your site’s waterfall run from Amsterdam: http://www.webpagetest.org/result/120430_JH_44YXC/
The major hindrance is the large images download.

Suggest you resize these images, save as jpg’s and optimize for the web first, consider adding a CDN like Amazon’s Cloudfront and serve your static content from that which will take a lot of load off your VPS.
Also, depending on ping times, consider moving your hosting from Germany to Netherlands ( would need to test latency to see if worthwhile) however there is some SEO benefit from hosting in same country as your TLD.

The other delays you are experiencing I would suspect are mysql based at a guess

Contact me if you want a detailed analysis

Image Attachments
banner-sale-matt-long.jpg
 Signature 

eCommistry.com - Magento Site Development, Magento Performance Optimization

 
Magento Community Magento Community
Magento Community
Magento Community
 
RonnyW
Jr. Member
 
Total Posts:  28
Joined:  2012-02-11
Netherlands
 

Hi Matt,

Thanks for taking the time to help me.

I have tried too run msqltuner.pl
But i get a lot of errors when running it ... ( i don\’t even have the possibility to login ...)

I do have to replace the banners, this i will do later today anyway (a new month ...)
So i will look at that too ...

The main page isn\’t the hardest page ...
When you click further, like http://www.liefstoereigenwijs.nl/meisjes/baby-50-74.html this page (and its get worse whenn you want to see all products in one page)

My main concern is the waitingtime in the beginning.
(probably transfertime between database and website)

but first i am going to look at the apache expires ...
(but this is enabled in Plesk for apache) ...

 
Magento Community Magento Community
Magento Community
Magento Community
 
Vanquish
Jr. Member
 
Total Posts:  24
Joined:  2012-07-02
 

This may help others with performance issues.  Running Nginx increases performance multiple times, using a web cluster such as three AWS micro instances plus an admin micro instance outperforms a single small instance due to parallel processing, obviously scaling up will help.

A CDN is also beneficial to offload the image loads to the users region such as CloudFront, however there are issues with Magento and the way it caches images if using a web cluster, you need NFS for the media and skins.  APC needs to be activated for php caching along with compiled php in Magento.  With this you should have sub-second page loads, you can also add memcache to enhance the performance further along with a read only database and a separate write database.

 Signature 

Vanquish Consulting
- http://www.vanquishconsulting.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
Extendware
Sr. Member
 
Avatar
Total Posts:  201
Joined:  2011-08-04
 

If the issue is the actual loading of the html page (not downloading the content), then you really need a Magento Full Page Cache Solution. This will get your load time down to about 80ms (that is 0.08s or less).

Based on how much slower your site runs when it is busy, it appears that your server is overloaded. The full page cache will reduce server load, so that more requests can be served to more users (and faster to boot).

 Signature 

#1 Magento extension provider
Full Page Cache | Site Speedster | Ajax Cart | Ajax Navigation | Custom Order Numbers | Spam and Bot Protection & More

 
Magento Community Magento Community
Magento Community
Magento Community
 
MagneticOneTeam
Sr. Member
 
Avatar
Total Posts:  230
Joined:  2008-04-02
USA
 

Hello, RonnyW!

If HTML performance is what concerns you most, here are some tips to help you boost the page loading speed.
- make sure you’re saving your images in the right format (jpeg and png) - it’ll lessen loading times
- if your Javascript or CSS files’ source code as well as HTML has a lot of unnecessary elements, minifying them would reduce their size
- reduce the number of HTTP requests by combining images into CSS sprites.
- avoid inline Java and CSS, it makes your HTML size much larger and prevents code caching.
- enable compression on your server

You can use Shopping Cart Diagnostics for measuring your website performance and optimising the necessary elements (the ones stated above and more).

 Signature 

Cart2Cart - easy migration to Magento
File2Cart - automated data import to Magento from csv, xml, Excel and txt file
Shopping Cart Diagnostics - fast and simple way to check your Magento store for errors

 
Magento Community Magento Community
Magento Community
Magento Community
 
Vanquish
Jr. Member
 
Total Posts:  24
Joined:  2012-07-02
 

You may want to look at this note

 Signature 

Vanquish Consulting
- http://www.vanquishconsulting.com

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top