Skip to content

Get PHP-FPM opcache statistics

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

Cachetool

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

  1. Install
curl -sLO https://github.com/gordalina/cachetool/releases/download/6.5.0/cachetool.phar
  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