Changes between Version 26 and Version 27 of PhpTop


Ignore:
Timestamp:
Nov 6, 2009, 1:51:23 AM (11 years ago)
Author:
Vincent Caron
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PhpTop

    v26 v27  
    5555'''phptop''' works with the regular embedded module and the CGI/FastCGI mode. There is currently no way to distinguish those different PHP calling contexts (also known as SAPI's).
    5656
    57 There is support for PHP CLI, but as a default [http://fr.php.net/manual/en/function.error-log.php error_log()] does not actually log but prints to stderr (unless you explictly use syslog with {{{error_log=syslog}}} in php.ini). If you take care of redirecting your CLI invocations to a log file, '''phptop''' can work on it. Use either the shell construct {{{php script.php 2>>error.log}}} or either syslog with {{{php script.php 2>&1 | logger}}}. You cannot log to Apache !ErrorLog files, simultaneous access by Apache and your CLI program may corrupt the log file.
    58 
    5957The CPU user and system time are collected with the [http://www.opengroup.org/onlinepubs/000095399/functions/getrusage.html getrusage] system call, with exclusion of child processes (thus forks, shell_exec and such are not accounted). The precision in Linux is limited by the kernel scheduler frequency: mostly 100Hz with 2.4 series (10ms precision) and 250Hz with 2.6 series (4ms precision). '''phptop''' is not a tracing or debugging tool, it is used to drill down among expensive queries and 10ms precision is considered sufficient for its goal.