good PHP OPcache GUI or monitoring scripts?
- This topic is empty.
-
AuthorPosts
-
February 13, 2023 at 7:59 pm #4167KennethGuest
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
February 13, 2023 at 8:01 pm #4168ChristineGuestThe cool thing it was only 1 file!
https://github.com/rlerdorf/opcache-status/blob/master/opcache.php
February 14, 2023 at 6:35 am #4171NicholasGuestnot updated in 9 years, you could spin the wheel and try on PHP 8 if you want 😀
February 15, 2023 at 6:05 am #4185MargaretGuestThis one is also single file opcache.php
https://github.com/carlosbuenosvinos/opcache-dashboard
but not updated for 7 years.
February 19, 2023 at 11:50 am #4232HannahGuestI guess the PHP guru have all moved on to JS frameworks and SSGs? Or what
February 19, 2023 at 11:56 am #4233JeffreyGuestlol
February 19, 2023 at 7:29 pm #4235MichaelGuestCachetool 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.
February 19, 2023 at 7:31 pm #4236MichelleGuestopcache-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
February 20, 2023 at 11:13 am #4240JohnGuestniiiiiceeeeeeee…..
April 8, 2024 at 6:54 pm #21433CatherineGuestCachetools 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???
April 8, 2024 at 6:57 pm #21434NicholasGuestsome newer project:
https://github.com/RobiNN1/phpCacheAdmin (for docker maybe)
April 8, 2024 at 7:00 pm #21435LisaGuestThe @Amnuts is simplest script. And supports JIT.
May 15, 2024 at 7:34 am #24855JeremyGuestShared by a member of our Discord:
August 27, 2024 at 10:25 am #26326GloriaGuestany update on this? will it be made part of the WP Admin >> SlickStack menu?
-
AuthorPosts