News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Sébastien Thomas' Blog:
Monitoring PHP APC cache usage
October 05, 2011 @ 13:11:14

Sébastien Thomas has a recent post to his blog shows how (with just a bit of code) you can monitor your APC cache usage on your local host.

I won't go deep into how OpCode caches work, you will find a lot of docs, just google for APC, Xcache, eAccelerator... What I can say is that APC (as other caches do) will save binary parts of your PHP code into memory and use it when you call for the same PHP function again. This way you save all the PHP file opening, parsing, etc. [...] One thing you won't come accross often on internet is How (the hell) do I know if APC is performing well ?

His answer comes in the form of code based on the APC-PHP-Monitor script. He changed it slightly to allow for use in other places, like with Nagios monitoring. A Nagois template is included to query the cache and report back a hit ratio. An example of the full cache results can be seen here complete with general cache info, hits, misses and file versus user caching stats.

0 comments voice your opinion now!
monitor cache usage apc apccchemonitor tutorial nagois


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Zend Framework Hidden Gems: Zend_Cache

Marcelo Gornstein's Blog: Advanced telephony applications with PHP and PAGI using call flow nodes

Joshua Thijssen's Blog: Symfony2: Implementing ACL rules in your Data Fixtures

HowTo Forge: Installing And Working With Xoops Under Ubuntu 6.10

Zend Framework By Examples: Handling dates and times (Zend_Date)


Community Events





Don't see your event here?
Let us know!


wordpress unittest code podcast community laravel refactor interview framework developer install testing opinion series threedevsandamaybe release language list configure introduction

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework