PHP-FPM monitoring

With Dynatrace PHP-FPM monitoring, you can immediately detect if your PHP-FPM is underperforming. When there's a problem, it's easy to see the hosts that are affected.


To use PHP-FPM monitoring, ensure the following:

  • You are using a Linux OS or Windows system
  • The PHP version is 5.5.9 or later
  • The PHP-FPM status page is enabled on all nodes you want to monitor

View PHP-FPM monitoring insights

  1. In the Dynatrace menu, select Technologies and click the PHP tile.

  2. In the table under the tiles, find the process group you want to examine and click Details to expand that row.

  3. Click Process group details.

  4. Select the Technology-specific metrics tab and set a time interval in the Timeframe Selector in the menu bar.

  5. Select a metric type from the list under the timeline to compare the values of all nodes in a sortable table view.

  6. To access node-specific metrics, select a node from the Process list at the bottom of the page.

  7. Click the PHP-FPM link.
    The number of Accepted connections and the Slow requests count is displayed.

Note: The Accepted connections measure is sometimes misunderstood to mean the number of requests. This metric measures exactly what the name suggests: the number of connections accepted by the pool.

PHP-FPM node-monitoring metrics

More PHP-FPM monitoring metrics are available on individual Process pages.

To view charts on Requests, Input buffering, and Processes, select the Further details tab. additional metrics

When the number of total active processes reaches the Total processes limit, new scripts are prevented from running until the problematic processes have completed. The maximum number of Waiting connections defines the maximum number of connections that will be queued. When this limit has been reached, subsequent requests are refused or ignored.

PHP-FPM metrics

Metric Description
Accepted connections The number of connections accepted by the pool.
Slow requests The number of requests that have exceeded the request_slowlog_timeout value.
Waiting connections The number of requests in the queue of pending connections.
Max no. of waiting connections The size of the pending connections socket queue.
Active processes The number of active processes.
Total processes The number of idle and active processes.

Enable PHP-FPM monitoring globally

When PHP-FPM monitoring is enabled globally, Dynatrace automatically collects PHP-FPM metrics whenever a new host running PHP-FPM is detected in the environment.

To monitor more than one pool, type the URIs of the individual PHP-FPM status pages into the status page of the URI field. Ensure that the names are separated by a single space. All PHP-FPM instances must have a correct status page URI reference.

  1. In the Dynatrace menu, go to Settings > Monitoring > Monitored technologies.
  2. Enable the PHP-FPM switch.
  3. To view the details of the PHP-FPM integration, click the arrowhead under Details.
  4. Define a status page URI.
  5. Click Save.

Enable PHP-FPM monitoring on individual hosts

Dynatrace also provides the option of enabling PHP-FPM monitoring for selected hosts.

  1. If global PHP-FPM monitoring is currently enabled, disable the PHP-FPM switch under Settings > Monitoring > Monitored technologies.
  2. In the Dynatrace menu, select Hosts.
  3. Select the host that you want to configure.
  4. In the host menu (""), select Settings.
  5. Turn on the PHP-FPM switch.