php-spx icon indicating copy to clipboard operation
php-spx copied to clipboard

The WEB GUI does not display any results.

Open McLotos opened this issue 4 years ago • 4 comments
trafficstars

I have a Notice: PHP message: PHP Notice: SPX: spx_profiler_stop (): profiling is not enabled in index.php

// index.php
<?php
spx_profiler_start();
require 'kernel.php';
$router->resolve();
spx_profiler_stop()
// docker-php-ext-spx.ini
extension=spx.so
spx.http_enabled=1
spx.http_key="dev"
spx.http_ip_whitelist=175.10.0.100
spx.data_dir=/var/www/html/spx_dumps
//SPX Control Panel command line prefix value: 
SPX_REPORT=full SPX_ENABLED=1 SPX_SAMPLING_PERIOD=5 SPX_METRICS=ct,it,io,ior,iow

php8, nginx, alpine OS The service processes about 1000 API requests per minute, but SPX Control Panel don't show statistics Screenshot from 2021-10-26 09-58-28

McLotos avatar Oct 26 '21 09:10 McLotos

spx_profiler_stop(): profiling is not enabled in logs

McLotos avatar Oct 29 '21 09:10 McLotos

Profiling is simply not enabled. What is the PHP SAPI ? If it is a CLI script the command line prefix must be added on your own, the control panel only displays it for the sake of convenience.

NoiseByNorthwest avatar Dec 12 '21 10:12 NoiseByNorthwest