good PHP OPcache GUI or monitoring scripts?
- This topic is empty.
-
AuthorPosts
-
KennethGuest
I used this one for a long time, but haven’t tested it for PHP 7 or 8 which I’m guessing it doesn’t support
https://github.com/rlerdorf/opcache-status
what are you guys using to monitoring OPcache or drill-down on script usage
ChristineGuestThe cool thing it was only 1 file!
https://github.com/rlerdorf/opcache-status/blob/master/opcache.php
NicholasGuestnot updated in 9 years, you could spin the wheel and try on PHP 8 if you want 😀
MargaretGuestThis one is also single file opcache.php
https://github.com/carlosbuenosvinos/opcache-dashboard
but not updated for 7 years.
HannahGuestI guess the PHP guru have all moved on to JS frameworks and SSGs? Or what
JeffreyGuestlol
MichaelGuestCachetool is a newer beast that includes a CLI. I think some of the features might be overkill for a lightweight LEMP stack like SlickStack esp. since OPcache is set by default to expire PHP file contents within a few seconds, it doesn’t need tons of analysis.
MichelleGuestopcache-gui is a lighter script, I’m pretty sure it’s also a single-file script like the others mentioned top of this thread.
https://github.com/amnuts/opcache-gui
Kinda weird they called it
index.php
by default though? instead ofopcache.php
JohnGuestniiiiiceeeeeeee…..
CatherineGuestCachetools says:
CacheTool allows you to work with APCu, OPcache, and the file status cache through the CLI. It will connect to a FastCGI server (like PHP-FPM) and operate on its cache.
Why is this useful?
Maybe you want to clear the bytecode cache without reloading php-fpm or using a web endpoint
Maybe you want to have a cron which deals with cache invalidation
Maybe you want to see some statistics right from the console
And many more…
Note that, unlike APCu and Opcache, the file status cache is per-process rather than stored in shared memory. This means that running stat:clear against PHP-FPM will only affect whichever FPM worker responds to the request, not the whole pool. Julien Pauli has written a post with more details on how the file status cache operates.I have never had to “restart PHP-FPM” to clear Opcache, you can do it with PHP function???
NicholasGuestsome newer project:
https://github.com/RobiNN1/phpCacheAdmin (for docker maybe)
LisaGuestThe @Amnuts is simplest script. And supports JIT.
JeremyGuestShared by a member of our Discord:
-
AuthorPosts