Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Increasing performance
 
PHOENIX
Guru
 
Avatar
Total Posts:  549
Joined:  2007-12-19
Stuttgart, Germany
 

In our test system we have PHP 5.2.5 fcgi + XCache + MySQL 4.1.x installed. With this configuration we did an Apache benchmark:

ab -n100 -c10 http://shop-domain.com/index.php

The result was poor: only 2.41 requests per second.

Even XCache is a good OpCode cache for other systems (like TYPO3 or osCommerce) it really sucks on Magento and Zend framework.

So we replaced it with APC and changed the standard MySQL configuration for InnoDB:

innodb_buffer_pool_size = 32M
innodb_flush_log_at_trx_commit = 0
innodb_flush_method = O_DSYNC
innodb_log_buffer_size = 8M
innodb_log_file_size = 32M

apc.enabled=1
apc.shm_segments=1
apc.shm_size=64
apc.ttl=1800
apc.user_ttl=1800
apc.num_files_hint=1024
apc.mmap_file_mask=/tmp/apc.XXXXXX
apc.include_once_override = 1

And voilà: now we have nice 6.6 requests/sec - that’s an increase of 170% compared to our old configuration.

We’ll do some further testing and post our results in the forum.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Ross
Guru
 
Avatar
Total Posts:  336
Joined:  2007-08-31
Scarborough, North Yorkshire, UK
 

thanks for the helpful post

 
Magento Community Magento Community
Magento Community
Magento Community
 
PHOENIX
Guru
 
Avatar
Total Posts:  549
Joined:  2007-12-19
Stuttgart, Germany
 

As a side note:

On the same system we run a xt:commerce (similar to osCommerce) demo-shop. The Apache bench measures up to 40 requests per second!

Compared to the 5.5 requ./sec. (yes, the new 0.8 is slower than the 0.7, see http://www.magentocommerce.com/bug-tracking/issue?issue=1267) there seems to be some work to do for the developer team to get this shopping system running in mass hosting environments which IMO is an important key for spreading Magento in the Open-Source world wink

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