Knowledgebase

Portal Home > Knowledgebase > Articles Database > Site slow with eaccelerator enabled


Site slow with eaccelerator enabled




Posted by ridesign, 09-28-2009, 08:55 AM
I have enabled eaccelerator on my server but the site does not appear to load any quicker. It is a site running wordpress, with a 200mb mysql db, with hypercache running. I am on a uk VPS server with 512 mb guaranteed ram burstable to 768mb. I have done tests on pingdom, and .js and image files take a long time. 3-4 seconds each even the small ones 0.9kb Server information: Processor #1 Vendor: AuthenticAMD Processor #1 Name: Dual Core AMD Opteron(tm) Processor 270 Processor #1 speed: 498.614 MHz Processor #1 cache size: 1024 KB Processor #2 Vendor: AuthenticAMD Processor #2 Name: Dual Core AMD Opteron(tm) Processor 270 Processor #2 speed: 498.614 MHz Processor #2 cache size: 1024 KB Processor #3 Vendor: AuthenticAMD Processor #3 Name: Dual Core AMD Opteron(tm) Processor 270 Processor #3 speed: 498.614 MHz Processor #3 cache size: 1024 KB Processor #4 Vendor: AuthenticAMD Processor #4 Name: Dual Core AMD Opteron(tm) Processor 270 Processor #4 speed: 498.614 MHz Processor #4 cache size: 1024 KB output:from: php -v PHP 5.2.9 (cli) (built: Aug 22 2009 03:00:45) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by eAccelerator with the ionCube PHP Loader v3.1.34, Copyright (c) 2002-2009, by ionCube Ltd., and with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies Some php.ini info: max_execution_time 30 30 max_input_nesting_level 64 64 max_input_time 60 60 memory_limit 12M 12M output_buffering no value no value output_handler no value no value zlib.output_compression Off Off zlib.output_compression_level -1 -1 zlib.output_handler no value no value Loaded Modules core mod_authn_file mod_authn_default mod_authz_host mod_authz_groupfile mod_authz_user mod_authz_default mod_auth_basic mod_include mod_filter mod_log_config mod_logio mod_env mod_expires mod_headers mod_unique_id mod_setenvif mod_version mod_proxy mod_proxy_connect mod_proxy_ftp mod_proxy_http mod_proxy_ajp mod_proxy_balancer mod_ssl prefork http_core mod_mime mod_dav mod_status mod_autoindex mod_asis mod_info mod_suexec mod_cgi mod_dav_fs mod_negotiation mod_dir mod_actions mod_userdir mod_alias mod_rewrite mod_so mod_bwlimited mod_php5 mod_security2 eAccelerator support enabled Version 0.9.5.3 Caching Enabled true Optimizer Enabled false Memory Size 75,497,436 Bytes Memory Available 32 Bytes Memory Allocated 75,497,404 Bytes Cached Scripts 1034 Removed Scripts 0 Cached Keys 0 eaccelerator.cache_dir /tmp/eaccelerator /tmp/eaccelerator eaccelerator.check_mtime 1 1 eaccelerator.compress 0 0 eaccelerator.compress_level 9 9 eaccelerator.debug 0 0 eaccelerator.enable 1 1 eaccelerator.filter no value no value eaccelerator.log_file no value no value eaccelerator.name_space no value no value eaccelerator.optimizer 1 1 eaccelerator.shm_max 0 0 eaccelerator.shm_only 1 1 eaccelerator.shm_prune_period 3600 3600 eaccelerator.shm_size 72 72 eaccelerator.shm_ttl 0 0

Posted by Ore Stone Radio, 09-28-2009, 09:17 AM
Try using Super Cache that works well http://wordpress.org/extend/plugins/wp-super-cache/ If it is still slow try upgrading to a dedi or upgrade your VPS.

Posted by Hosting24, 09-28-2009, 09:21 AM
According to my personal experience, eaccelerator does not help a lot. Sometimes it even has more negative effects than positive.

Posted by ridesign, 09-28-2009, 02:13 PM
my .js and image files take a long time to load even though they aren't that big?

Posted by foobic, 09-28-2009, 09:36 PM
I've also found eaccelerator can slow down page loads on a VPS. I suspect it was because of a bottleneck on disk i/o. Eaccelerator needs to write the compiled scripts to disk the first time a site is visited - if the disk is overloaded this may take longer than actually compiling the script. And of course an overloaded hard-drive / array will slow down everything else too. Run top - do you see a high %age for "wa"?

Posted by Steven, 09-28-2009, 09:48 PM
You can configure eaccelerator to only use memory and no disk. xCache however is superior to eaccelerator in every way.

Posted by foobic, 09-28-2009, 10:16 PM
Sure, but on a VPS memory is also at a premium. At the time it seemed like the only resource that was freely available was CPU - the main thing that these accelerators are supposed to save! Ultimately for me the solution was simply to switch to another provider where disk i/o isn't a problem. I'll look into xCache when I get the chance though - thanks for the tip.

Posted by Steven, 09-29-2009, 01:45 AM
You are aware its allocating to memory regardless right?

Posted by foobic, 09-29-2009, 02:54 AM
I wasn't, thanks for the heads-up. However since I still suspect that the main reason for the poor results I saw was probably disk i/o.

Posted by ridesign, 09-29-2009, 07:15 AM
I ran top and see around 13% for wa

Posted by ridesign, 09-29-2009, 01:30 PM
Just some more information about my server: 15gb total hd size and 12 gb is used (74%) so would freeing up space help to speed up my overall site, or are there other problems?



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Windows Reseller Host (Views: 564)
Interesting Request. (Views: 550)


Language:

Contact us