Ticket #125 (new defect)
Odd maximum execution time error
Description (last modified by moo) (diff)
I have noticed maximum execution time errors in my php errors log since using xcache that look like this:
[17-Sep-2007 16:11:21] PHP Fatal error: Maximum execution time of 30 seconds exceeded in ****\compile\%%3C^3C7^3C7D1048%%tier3.html.php on line 88 [17-Sep-2007 16:13:03] PHP Fatal error: Maximum execution time of 30 seconds exceeded in ****\compile\%%B7^B7F^B7F9E6FB%%other_viewed_items.html.php on line 21 [17-Sep-2007 16:17:26] PHP Fatal error: Maximum execution time of 30 seconds exceeded in ****\shopperschoice.com\compile\%%E3^E37^E37C7E5A%%relatedItems.html.php on line 96 [17-Sep-2007 16:26:46] PHP Fatal error: Maximum execution time of 30 seconds exceeded in ****\compile\%%E3^E37^E37C7E5A%%relatedItems.html.php on line 96 [17-Sep-2007 16:40:06] PHP Fatal error: Maximum execution time of 30 seconds exceeded in ****\compile\%%49^49B^49BD4451%%item.html.php on line 143 [17-Sep-2007 16:44:45] PHP Fatal error: Maximum execution time of 30 seconds exceeded in ****\compile\%%E3^E37^E37C7E5A%%relatedItems.html.php on line 83
But nothing in my server logs show requests lasting for longer than a few seconds, with most being sub second. I have looked at 10 minutes around each incedence, so I do not believe that I could have missed a server log entry. I run windows 2k3, sp1, IIS 6, isapi filter mode. php -v gives
PHP 5.2.3 (cli) (built: May 31 2007 09:37:22)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with XCache v1.2.0, Copyright (c) 2005-2006, by mOo
This is the xcache config:
[xcache-common] ;; install as zend extension (recommended), normally "$extension_dir/xcache.so" ;zend_extension = /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so ; zend_extension_ts = /usr/local/lib/php/extensions/non-debug-zts-xxx/xcache.so ;; For windows users, replace xcache.so with php_xcache.dll ;zend_extension_ts = "c:/program files/php/ext/php_xcache.dll" ;; or install as extension, make sure your extension_dir setting is correct ; extension = xcache.so ;; or win32: extension = php_xcache.dll [xcache.admin] xcache.admin.user = "admin" ; xcache.admin.pass = md5($your_password) xcache.admin.pass = "0b6005839364a422b90195a1afa05cec" [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 = 64M ; set to cpu count (cat /proc/cpuinfo |grep -c processor) xcache.count = 2 ; 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 = 300 ; same as aboves but for variable cache xcache.var_size = 0M xcache.var_count = 1 xcache.var_slots = 8K ; default ttl xcache.var_ttl = 300 xcache.var_maxttl = 86400 xcache.var_gc_interval = 300 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" xcache.mmap_path = "whatthismeans" ; leave it blank(disabled) or "/tmp/phpcore/" ; make sure it's writable by php (without checking open_basedir) xcache.coredump_directory = "c:\temp\xcache\" ; 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 = "c:\temp\xcache" Other loaded extensions: extension=php_curl.dll extension=php_gd2.dll extension=php_mbstring.dll extension=php_mcrypt.dll extension=php_mhash.dll extension=php_mysql.dll extension=php_mysqli.dll extension=php_pdo.dll extension=php_pdo_mysql.dll extension=php_openssl.dll extension=php_soap.dll extension=php_xsl.dll
The most frustrating thing is that I cannot duplicate or get any error pages, yet I can wait and an error log pops up every 5 minutes or so. I don't know how to test more but I would love to give any additional info I can. Any ideas?
Change History
Note: See
TracTickets for help on using
tickets.

