Docs cipi.yml Web panel API MCP Guides Compare GitHub Telegram channel
  1. Docs
  2. Apps
  3. PHP JIT per app

PHP JIT per app

Turn the OPcache JIT on or off for a single app.

Apps

PHP's JIT compiles hot code to machine code. It helps CPU-bound work (calculations, big collections, heavy templating) and does little for requests that mostly wait on the database. Cipi turns it on for one app, FPM or Octane, and checks it before and after.

Commands#

bash
cipi app jit myapp on                              # tracing mode, 128M buffer
cipi app jit myapp on --mode=function --buffer=256M
cipi app jit myapp off
cipi app jit myapp --json                          # current state

Safety checks#

CheckWhenIf it fails
PHP can start with JIT (no Xdebug/pcov, JIT compiled in)BeforeRefused, nothing written
PHP-FPM active / Octane answeringAfterPrevious setting restored

Where it is set#

RuntimeWhere the setting goesSide effect
PHP-FPMThe app's pool, plus a small server-wide file that makes JIT startable for that PHP versionRestarts that version's PHP-FPM (all its apps, briefly)
OctaneThe app's own ini directoryRestarts only that app's Octane

A value forced with cipi ini wins. cipi app convert resets JIT. Panel API: GET|PUT /api/apps/{name}/jit.

Measure before and after on your real workload; keep JIT only where it pays.