Hi,
I have eAccelerator working, on PHP 5.2.13
I can see in the control.php admin that it is caching scripts as intended.
Here are my settings:
Unfortunately, after just a few minutes of inactivity, eAccelerator purges the cached scripts automatically. Unfortunately, it doesn't actually log anything. As per my settings, it shouldn't purge anything, certainly not when the cache isn't even full (which it isn't). At no point is anything written in /tmp - /tmp/eaccelerator doesn't get created, perhaps I need to do this myself.
I don't get why it would purge the cached scripts. Perhaps Linux is clearing the memory? top shows plenty of spare memory left so this seems unlikely.
Reading eaccelerator's setting documentation, the scripts should remain cached, not disappear after a few minutes (literally about a minute or two).
What could be causing this unwanted behaviour?
I have eAccelerator working, on PHP 5.2.13
I can see in the control.php admin that it is caching scripts as intended.
Here are my settings:
Code:
extension="eaccelerator.so"
eaccelerator.shm_size="32"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.log_file="/opt/lsws/eaccelerator.log"
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="9"
eaccelerator.allowed_admin_path="/path/to/control.php"
I don't get why it would purge the cached scripts. Perhaps Linux is clearing the memory? top shows plenty of spare memory left so this seems unlikely.
Reading eaccelerator's setting documentation, the scripts should remain cached, not disappear after a few minutes (literally about a minute or two).
What could be causing this unwanted behaviour?