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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > eAcc settings

Reply
 
Thread Tools Display Modes
  #1  
Old 06-30-2009, 09:34 AM
Elfz Elfz is offline
New Member
 
Join Date: Jun 2009
Posts: 9
Default eAcc settings

what settings do you guys use in a shared hosting environment?


My current setup:
extension="eaccelerator.so"
eaccelerator.shm_size="128"
eaccelerator.cache_dir="/dev/shm/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="7200"
eaccelerator.shm_prune_period="1200"
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
  #2  
Old 06-30-2009, 10:37 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
I recommend using

eaccelerator.shm_size="16"
eaccelerator.optimizer="0"

16MB cache per process is enough as all cached scripts are shared in memory via /dev/shm/ .
do not use "shm_only" mode, it will not populate the on disk cache in /dev/shm.


You may need to load it as a zend_extension if ZendOptimizer is used.

Last edited by mistwang; 12-02-2009 at 08:19 PM..
Reply With Quote
  #3  
Old 06-30-2009, 11:42 AM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 723
What do you mean by per process? I thought that value is the size allocated to cache scripts. 16MB can be filled up quickly. And why disable eaccelerator.optimizer?
Reply With Quote
  #4  
Old 06-30-2009, 12:59 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
when use PHP suEXEC, each PHP process will create its own cache memory as each process was started independently.
If you use ZendOptimizer, you should turn off eaccelerator's.
Reply With Quote
  #5  
Old 06-30-2009, 02:10 PM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 723
I don't see any instances of zend_extension in php.ini but it shows Zend in php version.

[/usr/local/lsws/fcgi-bin]# ./lsphp-4.4.9 -v
PHP 4.4.9 (litespeed) (built: Jan 7 2009 00:36:35)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by eAccelerator

Last edited by anewday; 06-30-2009 at 02:16 PM..
Reply With Quote
  #6  
Old 06-30-2009, 06:54 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Zend Engine != ZendOptimizer
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 10:22 PM.



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