APC Admin – New generation admin interface for PHP APC

PHP APC(Alternative PHP Cache) is the best leading module for OpCode And User data caching in PHP. Other casing solutions like memcache provide a good competition for APC cache. But still APC [...]
APC-Admin Memory fragmentation

APC-Admin Memory fragmentation

View demo Download source Contribute

PHP APC(Alternative PHP Cache) is the best leading module for OpCode And User data caching in PHP. Other casing solutions like memcache provide a good competition for APC cache. But still APC have its advantage in simplicity and well provided documentation. One another advantage of APC is it provide an admin interface apc.php. This interface provide most of the options for viewing status and basic management options. But this admin interface is missing lot of options. APC Admin is created just to resolve that problem and resolve management capability.

Need for Server Side Caching in Web Applications

As we all know HTTP requests are handled by web servers(Like Apache,IIS,nginx etc). The server handle HTTP/S request in following basic steps.

1. Identify the files need to be executed.
2. Read data in files into memory.
3. Compile source files and generate OpCode
4. Execute the compiled data and return results.

APC OpCode Cache advantage

APC OpCode Cache advantage

In most cases the costly step is step2(Reading data from disk) since it demands I/O operation from disk much slower than memory. These 3 steps are repeated for all requests coming to a web server. When OpCode Caching is enabled,it simple story complied OpCode from step3 into memory. If same request executed again, Web Server can utilize OpCode saved in memory rather than executing costly steps(step2 and step3).

APC Admin Features

APC admin developed to provide additional options other than that provided by apc.php. APC Admin is featured with real-time charts and additional options to manage APC Cache.

1. Realtime Statistics.

APC Admin provide real-time statistics including OpCode & UserCache distribution and memory mapping. APC Admin provides an real time charts independently for OpCode and user caches. This real-time comparison of Hits and Misses provide an overview of efficiency of caching. Higher Hits/Misses ration indicate higher cache efficiency and memory utilization. APC Admin also provide memory mapping and fragmentation mapping.

2. Manage Cache Entrys.

Original apc.php admin interface lack option to manage cache. APC Admin provide options to add/remove files and directory’s into OpCode cache. It is very useful when deploying updates to existing web application without dropping any user requests.

3. APC Configuration and Version Infomration.

APC Admin display APC configuration and version information as similar to apc.php.

APC Admin installation

1. Download APC Admin From Following link.

View demo Download source

2. Just Copy apc.php to your server. navigate to same file to start using APC Admin.

APC Admin is not completely tested in all testing environments. Please free to post any bugs or suggestions.

Previous:
Next:

Tagged with:

  • Nilson Chagas

    Is there a version for APCU and PHP7?

  • Макc

    Hello! I’m trying to start admin panel, but see message:
    “No cache info available. APC does not appear to be running.”.
    Apc config in phpinfo:
    [root@vps130150 ~]# php -i | grep apc
    /etc/opt/remi/php70/php.d/40-apcu.ini,
    /etc/opt/remi/php70/php.d/50-apc.ini
    apc
    apcu
    MMAP File Mask => /tmp/apc.XXXXXX
    apc.coredump_unmap => Off => Off
    apc.enable_cli => Off => Off
    apc.enabled => On => On
    apc.entries_hint => 0 => 0
    apc.gc_ttl => 3600 => 3600
    apc.mmap_file_mask => /tmp/apc.XXXXXX => /tmp/apc.XXXXXX
    apc.preload_path => no value => no value
    apc.serializer => php => php
    apc.shm_segments => 1 => 1
    apc.shm_size => 1024M => 1024M
    apc.slam_defense => On => On
    apc.smart => 0 => 0
    apc.ttl => 0 => 0
    apc.use_request_time => On => On
    apc.writable => /tmp => /tmp