We're upgrading from RHEL5 PHP to a Zend Server CE install (latest release v5.1). We previously used APC for opcode caching which has great methods for determining how effective your opcode and user data cache is (hit ratios, total size used etc). How can we get similar info on Zend Server?
I've seen mention of the command "accelerator_get_status()" - however, we get a seg fault when we try to run this from the command line or via apache. I know it's running as we're able to store and retrieve stored keys using the old APC commands in our app.
Is there a way to tune your cache settings now?
The error we're seeing when running accelerator_get_status() from command line is:
[ 27.04.2011 11:42:00 ERROR] [ ZendExtensionManager.cpp : 654 ( sig_handler ) ] ZendExtensionManager got SIG 11 at pid 16779 !
[ 27.04.2011 11:42:00 ERROR] [ ZendExtensionManager.cpp : 667 ( sig_handler ) ] Crash happened during IDLE stage
[ 27.04.2011 11:42:00 ERROR] [ ZendExtensionManager.cpp : 670 ( sig_handler ) ] The stack trace follows:
[ 27.04.2011 11:42:00 SYSTEM] Ob开发者_运维问答tained 12 stack frames
[ 27.04.2011 11:42:00 SYSTEM] /usr/local/zend/lib/ZendExtensionManager.so [0x2abe2a147205]
[ 27.04.2011 11:42:00 SYSTEM] /usr/local/zend/lib/ZendExtensionManager.so [0x2abe2a13591a]
[ 27.04.2011 11:42:00 SYSTEM] /lib64/libc.so.6 [0x3d144302d0]
[ 27.04.2011 11:42:00 SYSTEM] /usr/local/zend/lib/optimizerplus/php-5.3.x/ZendOptimizerPlus.so [0x2abe3874e68a]
[ 27.04.2011 11:42:00 SYSTEM] /usr/local/zend/lib/optimizerplus/php-5.3.x/ZendOptimizerPlus.so [0x2abe387538b6]
[ 27.04.2011 11:42:00 SYSTEM] php [0x6ae099]
[ 27.04.2011 11:42:00 SYSTEM] php(execute+0x1ce) [0x6849de]
[ 27.04.2011 11:42:00 SYSTEM] php(zend_execute_scripts+0x159) [0x660dc9]
[ 27.04.2011 11:42:00 SYSTEM] php(php_execute_script+0x1b8) [0x60f358]
[ 27.04.2011 11:42:00 SYSTEM] php [0x6eac88]
[ 27.04.2011 11:42:00 SYSTEM] /lib64/libc.so.6(__libc_start_main+0xf4) [0x3d1441d994]
[ 27.04.2011 11:42:00 SYSTEM] php(realloc+0x261) [0x462ae9]
Segmentation fault
精彩评论