Troubleshoot the PHP agent instance count

Problem

On the PHP agent's APM Overview page, what is the PHP agent instance count in the Servers table? Why do these numbers change, and why does there appear to be an inconsistency in them?

Cause

PHP Overview Instances
APM > Applications > (selected app) > Monitoring > Overview: The instance count below each server name on the Servers list reflects the number of open file descriptors used by the New Relic PHP agent.

Each server listed on the Overview page includes the number of instances; for example, 42 app instances. The instance count indicates the maximum number of open file descriptors used by the PHP agent in the last reported minute. These file descriptors are open I/O sockets and reflect the agent/daemon communication channels.

The number of instances will increase if command line, background, or external processes are running. The number also may be influenced by heavy throughput. For example, an Apache server may be configured to grow the connection pool to accommodate increase load.

A difference in the expected values between servers may reflect background tasks being run on one server but not the other. An unexpected count also may indicate a misconfigured load balancer.

For more help

Additional documentation resources include PHP Agent Troubleshooting (individual topics describing common problems, causes, and solutions for your PHP agent installation).

Join the discussion about PHP in the New Relic Online Technical Community! The Technical Community is a public platform to discuss and troubleshoot your New Relic toolset.

If you need additional help, get support at support.newrelic.com.