Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Magento Forum

   
add to cart page load time in less than 2 seconds
 
SimpleHelix.com
Guru
 
Avatar
Total Posts:  417
Joined:  2007-08-31
Los Angeles, CA
 

The fix is simple and some of you might have already guessed it, it is APC ...

We were using eaccelerator / xcache for our opcode caching but after having a go on APC tonight, it looks like Magento turns on it’s rocket boosters once APC is activated over other opcode cachers.

Before with eAccelerator/xcache:

it was about 3-5 seconds to add to cart.

After with APC,

it’s been pretty much instant, about a second.  You can check it out here: http://www.magentify.com

And the you need to place this block just underneath <global>:

<global>
....................
<cache>
<backend>apc</backend>
<prefix>alphanumeric</prefix>
</cache>
......................

 Signature 

SimpleHELIX.com, LLC
A World-Class Magento Web Hosting company - Providing scalable, reliable, and secure enterprise hosting solutions
The creators of super-fast performance hosting. Find out more @ http://www.simpleHELIX.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
SimpleHelix.com
Guru
 
Avatar
Total Posts:  417
Joined:  2007-08-31
Los Angeles, CA
 

Almost forgot,

This is the file you want to edit after you activate APC.

app/etc/local.xml

 Signature 

SimpleHELIX.com, LLC
A World-Class Magento Web Hosting company - Providing scalable, reliable, and secure enterprise hosting solutions
The creators of super-fast performance hosting. Find out more @ http://www.simpleHELIX.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
chinesedream
Guru
 
Total Posts:  732
Joined:  2007-08-31
San Francisco, CA
 

Does it work for any server from any web host?

 
Magento Community Magento Community
Magento Community
Magento Community
 
dan_w
Sr. Member
 
Total Posts:  245
Joined:  2008-01-04
 

Thanks for the tip. Makes a huge difference.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Crucial
Guru
 
Avatar
Total Posts:  534
Joined:  2007-11-07
Phoenix, AZ
 
chinesedream - 10 June 2008 01:47 PM

Does it work for any server from any web host?

Our tests indicate that APC does not work with Zend Optimizer, and eAccelerator has a 13% performance increase over APC and uses 5MB less per process than APC. Very important information to consider when you have actual people using your store.

 Signature 

Crucial Web Hosting
Magento hosting in shared, semi-dedicated, and dedicated configurations. Demo store.
Dedicated Containers come with Varien’s professional support services for Magento.

 
Magento Community Magento Community
Magento Community
Magento Community
 
SimpleHelix.com
Guru
 
Avatar
Total Posts:  417
Joined:  2007-08-31
Los Angeles, CA
 

Crucial

Well, the issue is not which cacher is the fastest, it’s which cacher Magento is more optimized with.

But yeah, from a hosting company’s stand point, you probably do want to provide eAccelerator over other cachers for stability and compatibility. But in terms of performance, I’m seeing about close to 20-50% gain with APC enabled vs eAccelerator.

To be quite honest, I really don’t see much improvement for Magento when used with eAccelerator and even if it does, it’s just slightly noticeable. Magento also has their own cacher built in so I think it balances eachother out.

As for APC, it looks as if Magento team took some time to develop extra caching mechanisms for Magento exclusively.
Probably by directly utilizing the APC via the core api calls.
Hence the local.xml modification indicated above.

 Signature 

SimpleHELIX.com, LLC
A World-Class Magento Web Hosting company - Providing scalable, reliable, and secure enterprise hosting solutions
The creators of super-fast performance hosting. Find out more @ http://www.simpleHELIX.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
Brandlive Team
Guru
 
Avatar
Total Posts:  348
Joined:  2008-05-19
Buenos Aires, Argentina
 

SimpleHelix, thanks for your tip.
I can appreacite the difference using APC at this moment.

 Signature 

Brandlive eCommerce
MAGENTO SPECIALIST
http://brandlivecommerce.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
developerx
Jr. Member
 
Total Posts:  25
Joined:  2007-10-24
 

has anyone used memcache ?

I’ve tried:

<cache>
<backend>memcached</backend>
<host>127.0.0.1</host>
<port>112211</port>
</cache>

But it still creates the cache and session directories and no speed improvement

 
Magento Community Magento Community
Magento Community
Magento Community
 
United Media Associates
Member
 
Avatar
Total Posts:  48
Joined:  2008-03-27
 

Be very careful with adding the following block to your local.xml file:

SimpleHelix.com -

<global>
....................
<cache>
<backend>apc</backend>
<prefix>alphanumeric</prefix>
</cache>
......................

We’ve experimented with implementing this block, and found that if you have more than one Instance of Magento installed on your server using this configuration, APC seems to jumble up the cache, and doesn’t seem to be able to differentiate between the various sites and they begin cross-loading other Magento sites on the server - pretty ugly!

It would be wonderful to see some further documentation from the Varien team concerning this enhanced APC caching functionality activated by this configuration block. Does anyone know if this ‘feature’ is officially documented anywhere?

 Signature 

United Media Associates, LLC.
Professional Magento Consulting and Systems Integration
_________________________________________________________
http://umassociates.com - Magento Silver Partner

 
Magento Community Magento Community
Magento Community
Magento Community
 
SimpleHelix.com
Guru
 
Avatar
Total Posts:  417
Joined:  2007-08-31
Los Angeles, CA
 

Well that’s true, there were lot of tweakings that were involved to make APC robust and stable on our environment.
But with the correct settings and correct environment, this does really become a non-issue.

 Signature 

SimpleHELIX.com, LLC
A World-Class Magento Web Hosting company - Providing scalable, reliable, and secure enterprise hosting solutions
The creators of super-fast performance hosting. Find out more @ http://www.simpleHELIX.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
lorik
Member
 
Total Posts:  34
Joined:  2008-08-29
 

Hi everybody

Well, using tools like APC or other seems to increase performance.

But what about Magento cache itself ? We see that EAV cache increase performance.

So is it realy interesting to add external cache (say APC...) to Magento cache ? and mysql cache ? If APC store pages, there are not anymore mysql request needed for a stored page. and not anymore call to Magento cache.

Or am I totaly stupid smile ?

I ask this question because we meet issue with EAV Cache : It does work, ok, but as the trafic increase, as there are more and more error returns (in percentage of seen pages) : invalid_entity_type : XXX : No error with low trafic, and up to 3-4 % with 30 simultaneous guys on the website.

and these errors do not occurs without EAV cache.

so we are looking for solution to By-pass EAV cache, maybe replacing with external one.

What you think about it ?

thank you for yours replies

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
50155 users|557 users currently online|102304 forum posts