lighttpd forum XCache > strange looking stats - is this a problem?

Posted by Bernard (Guest)
on 04.08.2008 19:57
I'm seeing the following in my xcache admin/stats (sorry if the 
formatting is off):

      Slots  Size    Avail % Clear Compiling Hits Misses Clogs OOMs 
Errors Protected Cached Deleted GC
php#0 8.00 K 40.00 M 22.87 M        no 2,100,701 6,174 1,747 0 0 no 112 
0 259
php#1 8.00 K 40.00 M 16.84 M        yes 2,883,782 6,022 2,172 0 0 no 126 
0 259
php#2 8.00 K 40.00 M 14.00 M        no 3,155,422 5,191 2,591 0 0 no 115 
0 259
php#3 8.00 K 40.00 M 38.93 M        yes 2,490,742 3,252 1,227,363 0 0 no 
0 0 259


php#3 has a large # of clogs, nothing cached and is always showing as 
compiling.

Is this a problem?
Posted by moo XCache
on 05.08.2008 06:13
looks like there's a SIGSEGV or something, can u pls comment other 
zend_extension? or move zend_extension=/path/to/xcache.so to before any 
other zend_extension
Posted by Bernard (Guest)
on 05.08.2008 13:36
I have IonCube installed, but not Zend proper (as I understand it). 
php.ini shows following:

~~~
[xcache-common]

extension="xcache.so"

[xcache.admin]
xcache.admin.auth = On
xcache.admin.user = <edited>
xcache.admin.pass = <edited>

[xcache]
; ini only settings, all the values here is default unless explained

; select low level shm/allocator scheme implemenation
xcache.shm_scheme = "mmap"


; to disable: xcache.size=0
; to enable : xcache.size=64M etc (any size > 0) and your system mmap 
allows
xcache.size = 160M

; set to cpu count (cat /proc/cpuinfo |grep -c processor)
xcache.count = 4


; just a hash hints, you can always store count(items) > slots
xcache.slots = 8K


; ttl of the cache item, 0=forever
xcache.ttl = 3600


; interval of gc scanning expired items, 0=no scan, other values is in 
seconds
xcache.gc_interval = 600

; same as aboves but for variable cache
xcache.var_size = 4M
xcache.var_count = 4
xcache.var_slots = 8K
; default ttl
xcache.var_ttl = 3600
xcache.var_maxttl = 4000
xcache.var_gc_interval = 600


xcache.test = Off
; N/A for /dev/zero
xcache.readonly_protection = Off
; for *nix, xcache.mmap_path is a file path, not directory.
; Use something like "/tmp/xcache" if you want to turn on 
ReadonlyProtection
; 2 group of php won't share the same /tmp/xcache
; for win32, xcache.mmap_path=anonymous map name, not file path
xcache.mmap_path = "/dev/zero"

; leave it blank(disabled) or "/tmp/phpcore/"
; make sure it's writable by php (without checking open_basedir)
xcache.coredump_directory = ""

; per request settings
xcache.cacher = On
xcache.stat = On
xcache.optimizer = Off

[xcache.coverager]
; per request settings
; enable coverage data collecting for xcache.coveragedump_directory and 
xcache_coverager_start/stop/get/clean() functions (will hurt executing 
performance)
xcache.coverager = Off

; ini only settings
; make sure it's readable (care open_basedir) by coverage viewer script
; requires xcache.coverager=On
xcache.coveragedump_directory = ""



[Zend]
extension_dir = 
"/usr/local/lib/php/extensions/no-debug-non-zts-20060613"
zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.2.so"
zend_extension_ts="/usr/local/IonCube/ioncube_loader_lin_5.2_ts.so"

;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
;zend_optimizer.version=3.3.3


;extension=pdo.so
;extension=pdo_sqlite.so
;extension=sqlite.so
;extension=pdo_mysql.so

;zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
;zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so
Posted by moo XCache
on 07.08.2008 08:08
pls use zend_extension=/path/to/xcache.so instead of extension=xcache.so