Author |
|
dreaMaker
Joined: 12 Dec 2009 Posts: 6
|
Posted: Sat 12 Dec '09 15:38 Post subject: eAccelerator Performance Tweaking |
|
|
How about we give some general advise to help each other to get the most out of the eAccelerator settings that can generally be changed to give better performance?
Here is an excerpt of a php.ini we run on a dual core with 4 GB's of ram, it is a shared hosting machine that runs MySQL and Web Server.
Quote: | extension="eAccelerator.dll"
eaccelerator.enable="1"
eaccelerator.cache_dir="\cache"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.shm_size = "196"
eaccelerator.optimizer = "1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter="*.php"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
eaccelerator.keys = "disk_only"
eaccelerator.content = "disk_only"
eaccelerator.sessions = "disk_only"
eaccelerator.allowed_admin_path = "" |
Does anyone know how big i can set the "eaccelerator.shm_size = "196"" without crashing the server (on a server with 6 GB of ram)? |
|
Back to top |
|
waldbauer.com
Joined: 05 Jan 2008 Posts: 49 Location: Vienna
|
Posted: Wed 16 Dec '09 21:13 Post subject: |
|
|
You should set this as large to fit all scripts in memory + a few MB more. |
|
Back to top |
|
waldbauer.com
Joined: 05 Jan 2008 Posts: 49 Location: Vienna
|
Posted: Mon 21 Dec '09 11:08 Post subject: |
|
|
My current config is 196MB - after 3 days i got:
Code: | eAccelerator 0.9.6-svn369-rc1 control panel
Caching enabled yes
Optimizer enabled yes
Memory usage 58.93% (115.49MB/ 196.00MB)
Free memory 80.51MB
Cached scripts 1263
Removed scripts 0
|
|
|
Back to top |
|
dreaMaker
Joined: 12 Dec 2009 Posts: 6
|
Posted: Tue 22 Dec '09 16:18 Post subject: |
|
|
thanks waldbauer for the reply
Could you share the eAccelerator_PHP_5-2-12 on Apache lounge, as the fact that nobody can register on your site, if he/she is not from Austria
dankeschoen |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
|
Back to top |
|
dreaMaker
Joined: 12 Dec 2009 Posts: 6
|
Posted: Mon 15 Feb '10 2:26 Post subject: |
|
|
sorry for delayed reply, but thanks for the link |
|
Back to top |
|