ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:performance:healthcheckcli

This is an old revision of the document!


healthCheckCli

Syntax
mixed healthCheckCli()

Description

The methodhealthCheckCli() executes a single database health check pass and reports to the console. The output provided is the same as that stored by the healthCheck().

There is no consistency between databases as to the information returned, as it is dependent on what information is publicly exposed by the database.

Usage

/*
* Connection to DB2 database
*/
 
$perf = newPerfMonitor($db);
echo $perf->healthCheckCli();
/*
  -- Ratios --  
            data cache hit ratio => 0
  -- Data Cache --
              data cache buffers => 1000
                 cache blocksize => 8192
                 data cache size => 8000K
  -- Connections --
             current connections => 7
*/
v5/performance/healthcheckcli.1495039656.txt.gz · Last modified: 2017/05/17 18:47 by mnewnham