Knowledgebase
eAccelerator memory limit not being reached
Posted by hectorpn, 06-01-2011, 11:23 PM | Hi everyone.
I'm on a VPS (CentOS 5.6 64-bits / cPanel 11.3 / PHP 5) and eAccelerator seems to work fine with one caveat. It seems to reach a 32MB limit even though I have set it to 64 and the server still has plenty unused RAM. Is there any other (PHP or else) setting that may be putting a ceiling on it?
This is my config:
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20090626"
extension="eaccelerator.so"
eaccelerator.cache_dir="/var/cache/eaccelerator"
eaccelerator.check_mtime="1"
eaccelerator.compress="0"
eaccelerator.compress_level="9"
eaccelerator.content="shm"
eaccelerator.debug="0"
eaccelerator.enable="1"
eaccelerator.filter=""
eaccelerator.keys="shm"
eaccelerator.log_file="/usr/local/apache/logs/eaccelerator_log"
eaccelerator.optimizer="1"
eaccelerator.sessions="shm"
eaccelerator.shm_max="0"
eaccelerator.shm_only="1"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_size="64"
eaccelerator.shm_ttl="0"
|
Posted by activelobby4u, 06-02-2011, 04:50 AM | Yes, there is a php memory_limit parameter as well.
|
Posted by hectorpn, 06-02-2011, 08:38 PM | Yes makes sense. I do have 64M too so I'm a bit stumped. It may possible there are really no more scripts to cache, but it seems too suspicious it is exactly 32MB.
From my php.ini:
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;
max_execution_time = 90
max_input_time = 60
memory_limit = 64M
|
|
Add to Favourites
Print this Article |
Also Read
Moving acount (Views: 579)