Skip to content

Get PHP-FPM opcache statistics

How to get PHP-FPM opcache statistics without exposing any routes.


This tool can read APC and opcache statistics from a local PHP-FPM pool.

  1. Install
curl -sLO
  1. Read statistics
php cachetool.phar opcache:status --fcgi

#published #tool #php #performance

Links to this note

These notes are unpolished collections of thoughts, unfinished ideas, and things I want to remember later. In the spirit of learning in public, I'm sharing them here. Have fun exploring, if you want!
© 2022 by Adrian Philipp