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/5.1.3/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!
© 2020 by Adrian Philipp