EAccelerator Cache Size

Feb 1, 2007

how big I should set the cache size for eaccelerator?

Here's the information from the control.php

Caching enabled yes
Optimizer enabled yes
Memory usage 100.00% (16.00MB/ 16.00MB)
Free memory 0.00MB
Cached scripts 148
Removed scripts 0
Cached keys 0

View 1 Replies


ADVERTISEMENT

Eaccelerator Cache Emptying Cron

Apr 9, 2009

I'm sure all of you who use eaccelerator know how big the cache can get and that it needs emptied manually. Well at least to my knowledge it does, the only thing I have seen that you can configure is the shm pruning. If anyone does know such a feature with eaccelerator please share. But I also notice a performance decrease and a few php errors mostly related to memory allocations here and there.

Anyway I was piddling around and came up with a command to disable eaccelerator from php.ini, delete the cache folder and then enable it back. I figured this would be good as a daily cron. I would like some input if anyone knows any better ways.

So I wanted to share this in case someone else here has the same problems with eaccelerator cache folder getting huge. If anyone knows a way to make this better or shorter please reply with solution.

Of course this will vary depending on where your php.ini is and where your eaccelerator cache is. Just replace those values with yours. I'm sure there is also a way to use similar commands to find and input these values, again if anyone knows please share.

Code:
find /usr/local/lib -name 'php.ini' | xargs perl -pi -e 's/extension="eaccelerator.so"/;extension="eaccelerator.so"/g' ; rm -rf /usr/lib/php/eacc ; mkdir /usr/lib/php/eacc ; chmod 4777 /usr/lib/php/eacc ; find /usr/local/lib -name 'php.ini' | xargs perl -pi -e 's/;extension="eaccelerator.so"/extension="eaccelerator.so"/g'

View 4 Replies View Related

Windows 2003 Eaccelerator Cache Cleared Randomly

Mar 31, 2008

I have successfully installed eaccelerator on my win2k3 box and it is working great. The problem I am having is that every so often the cache files are mysteriously cleared. I know that the cache is cleared when apache is restarted but I have not restarted it and the files still go missing after a period of time. I have the ttl values for ea set to 0 to disable them.

Here is the ea ini in php.ini:

extension="eaccelerator.dll"
eaccelerator.shm_size="64"
eaccelerator.cache_dir="C:Cache"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="0"
eaccelerator.compress_level="9"
eaccelerator.allowed_admin_path = "D:WebsitesThe Family Garrisoncontrol.php"

I am running php as php-cgi.exe with MS fastcgi enabled on a 32bit system.

View 2 Replies View Related

Increasing APC Cache Memory Size

Dec 11, 2008

Right now APC shm_size is set to30 and since I am only using about 20% of the RAM in VPS, I thought it would be best to increase it a bit. Now how do I go about doing that?

View 2 Replies View Related

Account Size Not Matching Real Size

Aug 14, 2008

One of our resellers has an account.. When looking into cpanel, it says that that account is using 3300megs. When we go into the ftp of that account, in reality it is only using 1.3megs. This is a huge difference! Most of folders are empty.
We are using the latest version of WHM and Cpanel.

View 1 Replies View Related

Eaccelerator Eaccelerator.shm_ttl

Apr 30, 2008

Does anyone have a recommendation for the eaccelerator eaccelerator.shm_ttl setting? If it was left at the default of "0", this means no newer scripts would ever be cached once the memory is full. Or would it do additional caching on disk as well and not show up in the phpino.php file?

We have alloted 32 Megs of Ram for eA. Maybe something like this would help move some old scripts out of the cache?

eaccelerator.shm_ttl="86400"
eaccelerator.shm_prune_period="0"

View 0 Replies View Related

Apache :: Use Disk To Enhance For Page Cache And Database Cache For Disk

Apr 24, 2013

I use apache with CentOS VPS hosting for my blog. I only host one blog in this VPS account. I have 1.5GB RAM and I have 7, 500 page preview per day. My page loading time is 2-3 seconds (according to the pingdom tool).

I want to know what is the best performance (faster web page loading) W3 Total cache option for VPS hosting blog. Currently I use Disk to enhance for page cache and database cache for disk.

View 2 Replies View Related

Eaccelerator

Apr 14, 2008

When eAccelerator doesn't have enough free shared memory to cache a new script it will remove all scripts from shared memory cache that haven't been accessed in at least shm_ttl seconds. By default this value is set to "0" which means that eAccelerator won't try to remove any old scripts from shared memory.

Does that mean that once the shared memory is full, that even if a script that is in shared memory hasn't been accessed in 5 months, any new scripts will have to be ran off of the compiled versions on disk instead of being read out of the much-faster RAM?

View 3 Replies View Related

EAccelerator

Feb 4, 2007

i installed eAccelerator, everything look good, exept i have a problem with Wifidog-auth server that i have installed, it gives me errors that it cant connect to database.... but not all the times, could eaccelarator be doing this? it was fine before i installed EA

Fatal error: Uncaught exception 'Exception' with message 'Unable to connect to database on localhost' in /home/lavals/public_html/auth1/wifidog-auth/wifidog/classes/AbstractDb.php:96 Stack trace: #0 /home/lavals/public_html/auth1/wifidog-auth/wifidog/classes/AbstractDb.php(321): AbstractDb->connect(NULL) #1 /home/lavals/public_html/auth1/wifidog-auth/wifidog/classes/Server.php(227): AbstractDb->execSqlUniqueRes('SELECT server_i...', NULL, false, true) #2 /home/lavals/public_html/auth1/wifidog-auth/wifidog/include/common.php(107): Server::getCurrentServer(true) #3 /home/lavals/public_html/auth1/wifidog-auth/wifidog/hotspot_status.php(53): require_once('/home/lavals/pu...') #4 {main} thrown in /home/lavals/public_html/auth1/wifidog-auth/wifidog/classes/AbstractDb.php on line 96

View 4 Replies View Related

EAccelerator And PHP 5.2.5

Nov 12, 2007

It seems that eAccelerator 0.9.5.2 is incompatible with the latest PHP 5.2.5.

Any else can confirm this?

View 3 Replies View Related

SuPHP Or EAccelerator

Jul 22, 2009

I have a Linux server for shared hosting in which I am using Cpanel/WHM. I have PHP running as suPHP which I believe is for security. The problem I am facing is a lot of PHP based websites create load on the server and consume as much as 10% of the CPU and sometimes some script even consumes 50% CPU. I think I can reduce the load caused by the PHP scripts by installing eAccelerator. However, it does not work with PHP running as suPHP. Can anybody tell me which one should I choose of the both? Is there any other way to reduce the load on the server?

View 14 Replies View Related

APC Vs EAccelerator Vs XCache

Mar 30, 2009

if anyone has run any tests or if there is a way to tell one of the other. I would like benchmark test them, just not sure how.

View 2 Replies View Related

Installing EAccelerator

Jun 22, 2009

I successfully installed eAccelerator and its already working fine then I decided to update my PHP version which is 5.1.6 to 5.2.6 after the upgrade eAccelerator is no longer loaded I tried recompiling eAccelerator but to no avail it doesnt load anymore I double checked eaccelerator.ini and it was already set. Someone said that the phpize that was installed in my server is not compatible to PHP5.2.6 and it needs to be updated also but I cant seem to update it since it always says that it is already updated.

I am using CentOS5.3.

View 2 Replies View Related

Install EAccelerator

Jun 6, 2008

I've got a CentOS 5.0 machine running PHP 4 & 5 in FastCGI mode with suPHP.

I've read the instructions to install eAccelerator at: InstallFromSource - eAccelerator - Trac

However there is a line at the beginning that says it is safe to follow those directions if you have ONE php install.

I have php5 as default and php4 optional. Does this count as 1 or 2 installs?

View 8 Replies View Related

Xcache Or Eaccelerator?

Jul 21, 2008

What do you think is better Xcache or eAccelerator and why?

I can see that xcache is a little bit faster but what is better to use?

View 4 Replies View Related

Xcache Or Eaccelerator

Mar 27, 2008

I have a server and I have several proxies on it together with some of my websites.
The thing is sometime it will overload.

I was thinking to install xcache or eaccelerator.

which should I install? Which is better?

View 7 Replies View Related

EAccelerator FC2 Install

Nov 6, 2007

running php5 on FC2 server and wish to install eAccelerator, if i do 'yum info eaccelerator' it shows following as available.

Quote:

Looking in Available Packages:

Name : php-eaccelerator
Arch : i386
Version: 4.3.11_0.9.3
Release: 4.1.fc2.rf
Size : 231.11 kB
Group : Development/Languages
Repo : Dag RPM Repository for Fedora Core 2

This seems out of date?

Is this correct package or should be looking for another one?

View 1 Replies View Related

Eaccelerator Crashing

Feb 22, 2007

After upgrading to php 4.4.5 from 4.4.4 I am getting this error in modern bill

[23126] EACCELERATOR: PHP crashed on opline 245 of session_register() at /home/user/public_html/modernbill/include/functions.inc.php:99

Anyone face this issue before? I've always used both EA and MB.

[eAccelerator]
zend_extension="/usr/lib/php/eaccelerator/eaccelerator.so"
eaccelerator.shm_size="4096"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="3"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="1"
eaccelerator.keys="shm_and_disk"
eaccelerator.sessions="shm_and_disk"
eaccelerator.content="shm_and_disk"

[Zend]
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.2.2
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.2.2
zend_optimizer.version=3.2.2

zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

.htaccess file:

<Files .htaccess>
order allow,deny
deny from all
</Files>

DirectoryIndex index.php
Options -Indexes

php_value "magic_quotes_gpc" "1"
php_value "register_globals" "1"
php_value "error_reporting" "2039"

View 6 Replies View Related

How To Remove EAccelerator

Dec 8, 2007

How to remove eAccelerator, I updated my apache and there I got the option to install it ,and I installed it

View 7 Replies View Related

EAccelerator Error

Apr 5, 2007

Everything was working fine until I upgraded from PHP 5.2.0 to PHP 5.2.1. I compiled from source to upgrade, and I installed PHP 5.2.0 from source. Once I upgraded, eAccelerator complained that I had to recompile it again for it to work on 5.2.1. I did and it gave me the same error. I recompiled maybe 10 times and it has still complained about it. How do I fix this error?

View 2 Replies View Related

EAccelerator Settings

Nov 6, 2007

whether if its a good diea to enable these settings for eAccelerator?

eaccelerator.shm_max
eaccelerator.shm_ttl
eaccelerator.shm_prune_period

There are scripts which are accessed once a day and i guess i shoudl set to prune those scripts which arent accessed for a few hours or so?

View 9 Replies View Related

Module 'eAccelerator' Already Loaded

Oct 28, 2009

how I can get rid of this?

Code:
[28-Oct-2009 16:01:08] PHP Warning: Module 'eAccelerator' already loaded in Unknown on line 0

View 4 Replies View Related

Zend Optimizer & Eaccelerator

Feb 22, 2008

I read on some threads here, that installing Zend Optimizer and Eaccelerator, speeds up the box.

I already installed ZEND optimizer on my box, can someone explain benefit's of Eaccelerator , and how to install it and tweak it for best performance ?

Current Specs -

Quote:

PHP 4.4.8 (cli) (built: Feb 21 2008 01:17:23)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
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

View 9 Replies View Related

EAccelerator And Zend Optimizer

Feb 23, 2007

I am using PHP 5.2.1 (recently upgraded), Apache 2.2.4.

Before the upgrade, I had Zend Optimer and eAccelerator installed.

However, after upgrade of Apache and PHP + I had to reboot the server, I went on to reinstall eAccelerator.

Here is what php -v gave me :

=================
eAccelerator requires Zend Engine API version 220051024.
The zend Engine API version 220060519 which is installed, is newer.

contact eAccelerator at http://eaccelerator.net for a later version of eAccelerator.

PHP 5.2.1 (cli) (built: Feb 23 2007 11:36:11)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, copyright (c) 1998-2007 Zend Technologies
with Zend Extension Manager v1.2.0, Copyright (c) 2003-2006, by zend Technologies
with zend Optimizer v3.2.2, Coopyright (c) 1998-2006, by zend Technologies

=========================

the version of eAccelerator I tried to install is the latest one ( 0.95)

View 4 Replies View Related

Php 5.1 And Eaccelerator - Extra Performance

Feb 19, 2007

I tested eaccelerator with php 5.1.6 but I noticed just a very minor performance improvement. Eaccelerator is known for his incompatiblities, also php 5.1 is a big boy now and no longer need an accelerator.

View 2 Replies View Related

Zend Opt., IonCube, EAccelerator [all At Once]

Apr 8, 2007

Install IonCube:
==================================

Code:
wget [url]
#### replace below with the version tree you have (I will use 4.4)
cp ioncube_loader_lin_4.4.so /usr/local/lib/php/extensions
Add this line BEFORE any other zend_extension (e.g. Zend Optimizer or eAccelerator).
(#### replace below with the version tree you have (I will use 4.4))

Code:
zend_extension = /usr/local/lib/php/extensions/ioncube_loader_lin_4.4.so
==================================

Install Zend Optimizer:
==================================

Code:
wget [url]
==================================

Install eAccelerator (cPanel):
==================================

Code:
wget [url]
==================================

View 14 Replies View Related

Eaccelerator Cached Scripts

Feb 8, 2007

Using version 0.9.5 with the default settings. The cache fills up the shared memory in less than a day. I noticed the cached script is stuck at 176, what happens after this? Will it cache content to disk in the temporary folder (/tmp/eaccelerator/) when the shared memory is full?

View 0 Replies View Related

Xcache Or Eaccelerator For Wordpress Site

Oct 15, 2009

I have been trying to figure out which one I should be using for my wordpress site. I have read some discussion but after reading it all I am on the fence. Will Xcache work with cpanel?

The server is running XEN, with cpanel/whm, php5

The server spec is:
3.0Ghz - 8 cpu's
2048MB RAM, and 2048MB SWAP

I have also heard some people using litespeed server, would this be any good?

View 8 Replies View Related

Do I Have To Reinstall Firewalls, EAccelerator, Etc After I Re-build Apache?

Feb 21, 2007

Do I have to reinstall or re-config firewalls (BFD, APF, etc), eAccelerator, etc after I re-built Apache?

View 9 Replies View Related

Eaccelerator Installation Error, Can Not Find Config.m4

Aug 11, 2008

when I enter:

export PHP_PREFIX="/opt/php"
$PHP_PREFIX/bin/phpize

I got the following error message when I@user:

Cannot find config.m4.

Make sure that you run '/opt/php/bin/phpize' in the top level source directory of the module

I checked the above said folder (/opt/php/), there is no file called config.m4. but I found it at php source folder. what should I do to continue?

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved