Ticket #203 (new defect)

Opened 2 years ago

Last modified 8 months ago

empty list with eaccelerator_list_keys

Reported by: Doki Assigned to: bart
Priority: major Milestone: 0.9.6
Component: Control panel Version: 0.9.5
Keywords: eaccelerator_list_keys Cc:

Description

I get always an empty list of key with eaccelerator_list_keys.

I use the following configuration. As you can see from the bugreport there are 52 cachedKeys but in the list of the control pannel none show up.

EA is Setup to only use Shared Mem....no Disk !

Doki


Apache version: Apache/2.0.54 (Linux/SUSE)
PHP Version: 4.4.0, Zend version: 1.3.0 (SAPI: apache2handler)

eaccelerator version: 0.9.5
shm_type: mmap_anon
sem_type: spinlock
logo: PHPE6F78DE9-13E4-4dee-8518-5FA2DACEA803
cache: 1
optimizer: 1
memorySize: 67108828
memoryAvailable: 61398632
memoryAllocated: 5710196
cachedScripts: 111
removedScripts: 0
cachedKeys: 52

eAccelerator options:
	eaccelerator.allowed_admin_path: /home/siteblog/docs/config
	eaccelerator.cache_dir: /tmp/eaccelerator
	eaccelerator.check_mtime: 1
	eaccelerator.compress: 1
	eaccelerator.compress_level: 9
	eaccelerator.debug: 0
	eaccelerator.enable: 1
	eaccelerator.filter: 
	eaccelerator.keys: shm_only
	eaccelerator.log_file: 
	eaccelerator.name_space: 
	eaccelerator.optimizer: 1
	eaccelerator.shm_max: 1M
	eaccelerator.shm_only: 1
	eaccelerator.shm_prune_period: 10
	eaccelerator.shm_size: 64
	eaccelerator.shm_ttl: 10
/tmp/eaccelerator isn't writable!

Change History

01/23/07 19:27:25 changed by matthias@rpmforge.net

I'm seeing the exact same problem, as reported today to the developers list. I did manage to see a few keys on some servers, but only up to 5, whereas the control panel tells me that throusands of keys are cached.

01/29/07 23:43:20 changed by bart

  • owner changed from somebody to bart.
  • milestone set to 0.9.6.

I haven't tried it yet with eA 0.9.5 but with the current trunk I'm not able to reproduce this problem. I use this script to add the keys to shm:

<?php
    for ($i = 0; $i < 1000; ++$i) {
        eaccelerator_put($i, 'blablablablablabla');
    }
?>

11/18/07 05:10:52 changed by Edward_K

eaccelerator_list_keys() is affected by namespaces. http://eaccelerator.net/wiki/Settings#eaccelerator.name_space

Perhaps if eaccelerator_list_keys() is in a file that is in admin path, then it could traverse all namespaces instead.

Otherwise, you'll have to put a file with eaccelerator_list_keys() in to each vhost to see what that one contains.