eAcc settings

Discussion in 'Install/Configuration' started by Elfz, Jun 30, 2009.

  1. Elfz

    Elfz New Member

    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"
  2. mistwang

    mistwang LiteSpeed Staff

    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: Dec 3, 2009
  3. anewday

    anewday Moderator

    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?
  4. mistwang

    mistwang LiteSpeed Staff

    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.
  5. anewday

    anewday Moderator

    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: Jun 30, 2009
  6. mistwang

    mistwang LiteSpeed Staff

    Zend Engine != ZendOptimizer

Share This Page