I hope someone can do something about it. I going to test on APC.
Anyone tested it. Doest it work well ?
from where i can download APC for php 4.3.11?????
i have used eacaclerator but pages are breaking....
Download from here http://pecl.php.net/package/APC.
Remember that there is a processor overhead and adjust the php.ini settings according to this formula:
Free memory = apc.shm_segments * apc.shm_size
Example: with 512Mb physical RAM free on the server, I have apc.shm_segments = 4 and apc.shm_size = 128 (or any combination but the more segments the better - you need to experiment.) If this is not set properly, your server will start to page files to disk, which decreases performance.
Ken
If I turn the "apc.stat" variable to 0 (do not check to see changes in PHP scripts... supposedly would give a significant performance boost but require an apache restart in order to update scripts, which is okay as I don't plan to change any of the scripts), then my frontpage becomes blank. I can still access other php scripts like apc.php, and strangely there are no PHP errors on the screen OR dumped to apache logs. This is really bothering me because I have somewhat limited hardware and the user load is going to increase several times when the Fall comes. I need every bit of performance for when people want to hold quizzes or other heavy-load activities.
Ken
I'm running Apache/2.0.55 (Ubuntu) PHP/5.1.2 mod_ssl/2.0.55 OpenSSL/0.9.8a with the following APC settings. I have started to see some (what appears to me) significant fragmentation occuring when I look at the apc.php. I was wondering what I might do in terms of configuration to avoid fragmentation and when should I get concerned about fragmentation? How are other Moodlers handling/monitoring this? For the time being, I have opened up the page so that it can be seen at http://moodle.jesuitcp.org/apc.php - any advice would be greatly appreciated.
APC Runtime Settings
apc.cache_by_default | 1 |
apc.enable_cli | 0 |
apc.enabled | 1 |
apc.file_update_protection | 2 |
apc.filters |
|
apc.gc_ttl | 3600 |
apc.max_file_size | 1M |
apc.mmap_file_mask | /tmp/apc.G60RtP |
apc.num_files_hint | 1024 |
apc.optimization | 0 |
apc.shm_segments | 1 |
apc.shm_size | 64 |
apc.slam_defense | 0 |
apc.stat | 1 |
apc.ttl | 7200 |
apc.user_entries_hint | 100 |
apc.user_ttl | 7200 |
I have tried eaccelerator on php 5.1.4 but many pages just hang halfway. No error in apache log and i dun know where to debug. U are using eaccelerator 0.9.5 beta 2 for windows or for linux ? I am using it for windows platform
Here's the output from 'php -v':
C:\>php -v
PHP 5.1.4 (cli) (built: May 4 2006 10:35:22)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
The windows binary is a download from here http://pecl4win.php.net/ext.php/php_apc.dll. I'm using the php-5.1.2 version and it seems stable.
Ken
hi
i have just downlaoded APC binary for php 4.3.11. could anybody give me the settings to be made in php.ini and in APC whose APC is running successfully??
Regards,
Tahir
The fragmentation figure may be a red herring. APC has an efficient algorithm for reducing fragmentation and uses a simple offset-based linked list to store cache entries.
Take a look at the cache full count. In the last 3 days the cache has been purged twice, so its getting full and cleaning-out the old entries (those not accessed in the Time To Live time= 3600secs).
Try increasing the apc.shm_size first, but check that you have enough free memory (use the free value in 'top'). 128M is a good size - but it all depends on how much shared memory has been allocated in your system - again use 'top' to guide you on this.
If it works for you, set apc.stat to 0 (but note that there's controversy over this setting at the moment), and try increasing the number of apc.shm_segments (although Rasmus - the lead developer and the guy who invented PHP uses only 1 segment ).
It would be interesting to hear how you get on, so please report back.
Ken