LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > XCache vs eAcc?

Reply
 
Thread Tools Display Modes
  #1  
Old 05-07-2009, 03:17 PM
yulia yulia is offline
Member
 
Join Date: Oct 2008
Posts: 27
Default XCache vs eAcc?

Right now I'm using XCache in a suEXEc/CPanel setup for shared hosting, and just wanted to know if eAcc would be better?
Reply With Quote
  #2  
Old 05-08-2009, 11:56 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
With suEXEC PHP, each PHP process has its own cache memory, it wastes a lot of memory if many PHP process running. It is true for all opcode caches.
eAcc store cache on disk, we thought it is a good idea to put the disk cache under /dev/shm, make it effectively an in memory cache shared by all PHP processes, however, eAcc causes high load for some users, maybe due to bug with certain PHP release.

So, we do not have a perfect opcode cache solution working really well for shared hosting. If the bug in eAcc has been fixed, it will get our recommendation.
Reply With Quote
  #3  
Old 05-13-2009, 05:51 PM
ezpnet-ss ezpnet-ss is offline
New Member
 
Join Date: Dec 2008
Posts: 6
What php release have you tested this to work well with George?

Thanks!
__________________
--
Shane Simpson
EZProvider Networks, Inc.
http://ezp.net
Reply With Quote
  #4  
Old 05-18-2009, 12:39 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
I am not exactly sure, as the problem seems related to amount of script being cached. Or, maybe the eAccelerator optimizer causes trouble for latest PHP? Not sure.
Reply With Quote
  #5  
Old 05-24-2009, 09:01 AM
yah00 yah00 is offline
New Member
 
Join Date: Apr 2009
Posts: 4
Is this correct for eAcc?

/etc/fstab
tmpfs /dev/shm tmpfs defaults 0 0

extension="eaccelerator.so"
eaccelerator.shm_size="150"
eaccelerator.cache_dir="/dev/shm"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="3600"
eaccelerator.shm_prune_period="1800"
eaccelerator.shm_only="1"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
eaccelerator.keys="shm_only"
eaccelerator.sessions="shm_only"
eaccelerator.content="shm_only"
Reply With Quote
  #6  
Old 05-24-2009, 12:42 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/dev/shm/eaccelerator"
eaccelerator.optimizer="0"
eaccelerator.shm_only="0"

create /dev/shm/eaccelerator/ directory with mode 777, this is for PHP suEXEC .

Last edited by mistwang; 12-02-2009 at 08:20 PM..
Reply With Quote
  #7  
Old 07-28-2009, 09:59 AM
MikeDVB MikeDVB is offline
Senior Member
 
Join Date: Jul 2009
Posts: 218
I have been looking into xcache and eaccelerator - how has it been working out for you guys?
Reply With Quote
  #8  
Old 07-28-2009, 10:01 AM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 723
I have zero issues with eaccelerator so far.
Reply With Quote
  #9  
Old 07-28-2009, 10:05 AM
robfrew robfrew is offline
Senior Member
 
Join Date: Dec 2007
Location: Salt Lake City UT
Posts: 151
Xcache works great with our setup. It's blazing fast. And it also works with the latest releases of PHP such as 5.3. The fact that they are keeping up with the latest releases tells me they are constantly making Xcache better.

If you look at various sites that have done testing on both, they say that eA and Xcache are pretty much neck in neck when it comes to performance.

http://trentadams.com/2008/05/22/xca...-eaccelerator/
Reply With Quote
  #10  
Old 07-28-2009, 10:47 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Xcache is not recommended for shared hosting using suEXEC as it does not have a shared on disk storage.

If you want to use the latest PHP release, eAccelerator may not be up-to-date, just be cautious.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:44 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.