Z
Z
zednight2014-03-20 08:15:53
linux
zednight, 2014-03-20 08:15:53

How to monitor php-fpm?

The creak is visible and the get parameters are visible, but the entire url is not visible, /controller/action is still there, how can I see them?
debian nginx + php-fpm
nginx setup
...

location / {
                try_files $uri /index.php?$query_string;
        }
        location /status {
                include fastcgi_params;
                allow 127.0.0.1;
                deny all;
                fastcgi_pass unix:/var/run/php5-fpm/web.socket;
        }
        location ~ \.php$ {
                fastcgi_pass unix:/var/run/php5-fpm/web.socket;
                fastcgi_index index.php;
                include fastcgi_params;
        }

...
configuring php-fpm
[www.site.ru]
listen = /var/run/php5-fpm/web.socket
listen.backlog = -1
user = www-data
group = www-data
pm = dynamic
pm.max_children = 75
pm.start_servers = 10
pm.min_spare_servers = 10
pm.max_spare_servers = 25
pm.max_requests = 1000
pm.status_path = /status
env[HOSTNAME] = $HOSTNAME
env[PATH] = /usr/local/bin:/usr/bin:/bin
env[TMP] = /tmp
env[TMPDIR] = /tmp
env[TEMP] = /tmp

Status?full query result
pool:                 www.web.ru
process manager:      dynamic
start time:           17/Mar/2014:15:05:02 +0400
start since:          238001
accepted conn:        945981
listen queue:         0
max listen queue:     0
listen queue len:     0
idle processes:       21
active processes:     4
total processes:      25
max active processes: 72
max children reached: 1

************************
pid:                  9436
state:                Running
start time:           20/Mar/2014:06:32:39 +0400
start since:          9544
requests:             473
request duration:     2009906
request method:       POST
request URI:          /index.php?page=3
content length:       17
user:                 -
script:               /var/www/index.php
last request cpu:     0.00
last request memory:  0

The creak is visible and the get parameters are visible, but the entire url is not visible, /controller/action is still there, how can I see them?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dan Ivanov, 2014-03-22
@ptchol

Or maybe the initialization of the required /controller/action occurs already inside the application, after its initialization by FPM, so you won’t see it.
In fact, everything that is available to FPM is available in its access log, look there. If there are no necessary values, then probably alas.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question