Opened 7 years ago

Closed 21 months ago

#125 closed defect (worksforme)

Odd maximum execution time error

Reported by: corey@… Owned by: moo
Priority: major Milestone: 3.0.0
Component: cacher Version: 1.2.0
Keywords: Cc:
Application: IIS PHP Version: 5.2.3
Other Exts: SAPI: isapi
Probability: Sometimes Blocked By:
Blocking:

Description (last modified by moo)

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 (5)

comment:1 Changed 7 years ago by moo

  • Description modified (diff)

can you show me what's in those lines? and btw, can u pls try to upgrade to 1.2.1?

comment:2 Changed 7 years ago by moo

  • pending changed from 0 to 1

comment:3 Changed 6 years ago by moo

  • Component changed from admin to cacher

comment:4 Changed 22 months ago by moo

  • Milestone set to 2.1.0
  • Status changed from new to assigned

need to reproduce

comment:5 Changed 21 months ago by moo

  • Resolution set to worksforme
  • Status changed from assigned to closed
<?php
ini_set("max_execution_time", 1);
while (1) {
}
Note: See TracTickets for help on using tickets.