Changeset 456


Ignore:
Timestamp:
2007-07-14T07:06:10+02:00 (7 years ago)
Author:
moo
Message:

fixed #133: add "compile failures" in XCache admin stats

Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/common-zh-simplified-utf-8.lang.php

    r371 r456  
    3434        'OOMs' 
    3535        => '内存不足', 
     36        'Errors' 
     37        => '错误', 
    3638        'Protected' 
    3739        => '保护', 
  • trunk/admin/common-zh-traditional-utf-8.lang.php

    r371 r456  
    3434        'OOMs' 
    3535        => '記憶體不足', 
     36        'Errors' 
     37        => '错误', 
    3638        'Protected' 
    3739        => '保護', 
  • trunk/admin/help-en.lang.php

    r321 r456  
    1111<dt><?php echo _T('Clogs'); ?>: </dt><dd>Compiling Clogs, clog=compiling is needed but avoided to wait(be blocked) when the cache is busy compiling already</dd> 
    1212<dt><?php echo _T('OOMs'); ?>: </dt><dd>Out Of Memory, how many times a new item should be stored but there isn't enough memory in the cache, think of increasing the xcache.size or xcache.var_size</dd> 
     13<dt><?php echo _T('Errors'); ?>: </dt><dd>Compiler errors, how many times your script is compiled but failed. You should really check what is happening if you see this value increase. See <a href="http://www.php.net/manual/en/ref.errorfunc.php#ini.error-log">ini.error-log</a> and <a href="http://cn2.php.net/manual/en/ref.errorfunc.php#ini.display-errors">ini.display-errors</a></dd> 
    1314<dt><?php echo _T('Protected'); ?>: </dt><dd>Whether <a href="http://trac.lighttpd.net/xcache/wiki/ReadonlyProtection">readonly_protection</a> is available and enable on this cache</dd> 
    1415<dt><?php echo _T('Cached'); ?>: </dt><dd>Number of entries stored in this cache</dd> 
  • trunk/admin/help-zh-simplified-utf-8.lang.php

    r321 r456  
    1111<dt><?php echo _T('Clogs'); ?>: </dt><dd>编译阻塞跳过, 阻塞=当需该共享内存区负责编译时, 其他进程/现成无法访问此共享内存. 跳过=XCache 自动判断阻塞的共享内存区自动跳过阻塞等待, 直接使用非共享内存方式继续处理请求</dd> 
    1212<dt><?php echo _T('OOMs'); ?>: </dt><dd>内存不足次数, 显示需要存储新数据但是共享内存区内存不足的次数. 如果出现太频繁请考虑加大配置中的 xcache.size 或者 xcache.var_size</dd> 
     13<dt><?php echo _T('Errors'); ?>: </dt><dd>编译错误, 显示您的脚本被编译时出错的次数. 如果您发现这个数字不断增长, 您应该检查什么脚本产生错误. 参考 <a href="http://www.php.net/manual/en/ref.errorfunc.php#ini.error-log">ini.error-log</a> and <a href="http://cn2.php.net/manual/en/ref.errorfunc.php#ini.display-errors">ini.display-errors</a></dd> 
    1314<dt><?php echo _T('Protected'); ?>: </dt><dd>显示该 Cache 是否支持并启用 <a href="http://trac.lighttpd.net/xcache/wiki/ReadonlyProtection">readonly_protection</a></dd> 
    1415<dt><?php echo _T('Cached'); ?>: </dt><dd>共享内存于该共享内存区的项目条数</dd> 
  • trunk/admin/help-zh-traditional-utf-8.lang.php

    r321 r456  
    1111<dt><?php echo _T('Clogs'); ?>: </dt><dd>編譯阻塞跳過,阻塞=當需該共享記憶體區負責編譯時,其他程序/現成無法存取此共享記憶體. 跳過=XCache 自動判斷阻塞的共享記憶體區自動跳過阻塞等待,直接使用非共享記憶體方式繼續處理請求</dd> 
    1212<dt><?php echo _T('OOMs'); ?>: </dt><dd>記憶體不足次數,顯示需要儲存新資料但是共享記憶體區記憶體不足的次數. 如果出現太頻繁請考慮加大配置中的 xcache.size 或者 xcache.var_size</dd> 
     13<dt><?php echo _T('Errors'); ?>: </dt><dd>编译错误, 显示您的脚本被编译时出错的次数. 如果您发现这个数字不断增长, 您应该检查什么脚本产生错误. 参考 <a href="http://www.php.net/manual/en/ref.errorfunc.php#ini.error-log">ini.error-log</a> and <a href="http://cn2.php.net/manual/en/ref.errorfunc.php#ini.display-errors">ini.display-errors</a></dd> 
    1314<dt><?php echo _T('Protected'); ?>: </dt><dd>顯示該 Cache 是否支援並啟用 <a href="http://trac.lighttpd.net/xcache/wiki/ReadonlyProtection">readonly_protection</a></dd> 
    1415<dt><?php echo _T('Cached'); ?>: </dt><dd>共享記憶體於該共享記憶體區的項目個數</dd> 
  • trunk/admin/xcache.tpl.php

    r371 r456  
    3535        <th><?php echo _T('Clogs'); ?></th> 
    3636        <th><?php echo _T('OOMs'); ?></th> 
     37        <th><?php echo _T('Errors'); ?></th> 
    3738        <th><?php echo _T('Protected'); ?></th> 
    3839        <th><?php echo _T('Cached'); ?></th> 
     
    4142    </tr> 
    4243    <?php 
    43     $numkeys = explode(',', 'slots,size,avail,hits,misses,clogs,ooms,cached,deleted'); 
     44    $numkeys = explode(',', 'slots,size,avail,hits,misses,clogs,ooms,errors,cached,deleted'); 
    4445    $l_clear = _T('Clear'); 
    4546    $l_clear_confirm = _T('Sure to clear?'); 
     
    7677        <td>{$ci['clogs']}</td> 
    7778        <td>{$ci['ooms']}</td> 
     79        <td>{$ci['errors']}</td> 
    7880        <td>{$ci['can_readonly']}</td> 
    7981        <td>{$ci['cached']}</td> 
  • trunk/xcache.c

    r455 r456  
    472472    add_assoc_long_ex(return_value, ZEND_STRS("clogs"),     cache->clogs); 
    473473    add_assoc_long_ex(return_value, ZEND_STRS("ooms"),      cache->ooms); 
     474    add_assoc_long_ex(return_value, ZEND_STRS("errors"),    cache->errors); 
    474475 
    475476    add_assoc_long_ex(return_value, ZEND_STRS("cached"),    cache->entries_count); 
     
    14021403    if (catched) { 
    14031404        cache->compiling = 0; 
     1405        cache->errors ++; 
    14041406        zend_bailout(); 
    14051407    } 
  • trunk/xcache.h

    r442 r456  
    177177    zend_ulong clogs; 
    178178    zend_ulong ooms; 
     179    zend_ulong errors; 
    179180    xc_lock_t  *lck; 
    180181    xc_shm_t   *shm; /* to which shm contains us */ 
Note: See TracChangeset for help on using the changeset viewer.