Graphic stand-alone administration for memcached to monitor and debug purpose

Overview

PHPMemcachedAdmin

Graphic stand-alone administration for memcached to monitor and debug purpose

This program allows to see in real-time (top-like) or from the start of the server, stats for get, set, delete, increment, decrement, evictions, reclaimed, cas command, as well as server stats (network, items, server version) with googlecharts and server internal configuration

You can go further to see each server slabs, occupation, memory wasted and items (key & value).

Another part can execute commands to any memcached server : get, set, delete, flush_all, as well as execute any commands (like stats) with telnet

Feature list

Statistics

  • Stats for each or all memcached servers, items, evicted, reclaimed ...
  • Stats for every command : set, get, delete, incr, decr, cas ...
  • Slabs stats (Memory, pages, memory wasted, items)
  • Items stats (View items in slabs, then data for each key)
  • Network stats (Traffic, bandwidth)

Commands

  • Execute commands : get, set, delete, flush_all on servers to administrate or debug it
  • Get data with key on servers
  • Delete keys on servers
  • Flush servers
  • Execute telnet command directly from phpMemcachedAdmin
  • Search for specific pattern into all keys

Live Stats

  • Top-like real time stats with configurable alerts

Configuration

  • Edit configuration directly from web page
  • phpMemcachedAdmin can use socket communication, PECL Memcache or Memcached API
  • Organize your servers into cluster

Security

phpMemcachedAdmin does not provide any security system, you need to add this feature by yourself.

Installation

Download latest release Unzip/Untar & Give files permissions

You have to give Read & Execute right to all files, and Read, Write & Execute to configuration files and temporary directory.

More information in https://blog.elijaa.org/phpmemcachedadmin-installation-guide/

Comments
  • server segmentation suggestion

    server segmentation suggestion

    I have been using your tool for about a week now and really like it. However 
    when it comes to getting an overall view of servers it is difficult. If I have 
    multiple servers in dev, staging and production, I cannot get an overview for 
    each segmentation, just all of them combined.
    
    My suggestion would be to add a pool flag to each server in the configuration 
    so that you can flag it as dev, staging or production. Then in the dropdown for 
    servers, you could have the following:
    
    All servers
    Production
        web1
        web2
        webn
    Staging
        staging1
        stagingn
    Dev
        dev1
    
    
    Then, I could easily see how space I have used in my production pool.
    
    
    
    

    Original issue reported on code.google.com by visseraj on 12 Oct 2010 at 2:13

    Priority-Medium Type-Enhancement auto-migrated 
    opened by GoogleCodeExporter 8
  • PHP 7.2.x

    PHP 7.2.x

    Warning with PHP 7.2.x => "PHP Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in C:\wamp\apps\phpmemcachedadmin\Library\Bootstrap.php on line 20"

    How to correct that ?

    Greetings, Sylvain Legrand

    opened by SylvainLegrand 7
  • Allow names in the configuration and reflect that in the gui

    Allow names in the configuration and reflect that in the gui

    We create our configuration using a script and a config looks like this:
    
    'servers' =>
      array (
        'production-memcached' =>
        array (
          'db7-s0' =>
          array (
            'port' => '28800',
            'hostname' => '10.28.38.70',
          ),
          's0010-s3' =>
          array (
            'port' => '28830',
            'hostname' => '10.28.38.78',
          ),
    etc.
    
    So the keys for the server are actual short names. The attached patch changes 
    the code so that these names are used everywhere, which makes for our (pretty 
    large installation), the tool way more useful because we do not drown in a 
    large sea of 10.x.x.x IPs and almost the same ports everywhere. :-) 
    
    It is straightforward. Please apply.
    
    

    Original issue reported on code.google.com by [email protected] on 21 Jan 2012 at 2:13

    Attachments:

    Priority-Medium Type-Enhancement auto-migrated 
    opened by GoogleCodeExporter 6
  • Uptime of

    Uptime of "All servers" is sum of uptime of servers

    When looking at the uptime of each of my server, I have something like:
     Uptime 143 days 8 hrs 11 min
    
    But when looking at the same stat in 'All servers', I have the following:
     Uptime 860 days 3 hrs 39 min
    
    It appears phpmemcacheadmin is summing the uptime of the 6 servers
    
    

    Original issue reported on code.google.com by [email protected] on 3 Dec 2010 at 5:09

    Priority-Medium auto-migrated Type-Defect 
    opened by GoogleCodeExporter 6
  • Support more non-additive statistics. Add Composer support.

    Support more non-additive statistics. Add Composer support.

    The current master version performs statistics merging by only special-casing "uptime" and "version" from additions, but there are more statistics in current memcache extension builds which can are not additive either, like "time" or 'libevent", and with the stricter warnings available in PHP 7.1, these cause warnings.

    This PR extracts the non-additive list to a constant and uses it both for the main screen and live stats where similar errors occur when diffing non-additive statistics.

    opened by fgm 5
  • Wrong statistic

    Wrong statistic

    > What steps will reproduce the problem?
    1. install phpmecacheadmin, memcached and php-memcache
    2. use it for some time period
    3. get wrong statistic data
    
    > What is the expected output? What do you see instead?
    As you can see on screenshot we have 100% of hits and 100% of misses.
    Also we have a very big amount of free space on pie chart.
    http://img718.imageshack.us/img718/1994/selection021.png
    
    > What version of the product are you using? On what operating system?
    several servers, several linux distributions (ubuntu server, centos)
    phpmecacheadmin 1.2.1
    memcached 1.4.2\1.4.5\1.4.7 
    php 5.2\5.3
    
    
    

    Original issue reported on code.google.com by [email protected] on 15 Sep 2011 at 5:58

    Priority-Medium auto-migrated Type-Defect 
    opened by GoogleCodeExporter 5
  • invalid encoding on return command

    invalid encoding on return command

    What steps will reproduce the problem?
    1. goto commands.php
    2. search a key that return utf-8 caracters (for example "ñ")
    
    What is the expected output? What do you see instead?
    expected:
    
       Server 127.0.0.1:11211
       suggest=ñ
    
    returned:
    
       Server 127.0.0.1:11211
       suggest=ñ
    
    What version of the product are you using? On what operating system?
    
     1.2.0
    
    Please provide any additional information below.
    
    change the line 110 for 
    
       return $header . htmlentities($return, ENT_NOQUOTES | ENT_IGNORE, "UTF-8") . "\r\n";
    
    instead of
    
       return $header . htmlentities($return) . "\r\n";
    
    
    
    

    Original issue reported on code.google.com by [email protected] on 7 Apr 2011 at 7:39

    Priority-Medium auto-migrated Type-Defect 
    opened by GoogleCodeExporter 3
  • warning: preg_replace: Unknown modifier 'w'

    warning: preg_replace: Unknown modifier 'w'

    What steps will reproduce the problem?
    1. I downloaded and put on the server
    2. went to page: 
       /index.php?server=localhost:11211&show=items&slab=2&request_key=sweeps:user/sweepstake:991664/2858&request_api=Server&request_command=get
    
    What is the expected output? What do you see instead?
    
    I get a Warning:
    
    Warning: preg_replace() [function.preg-replace]: Unknown modifier 'w' in 
    /mnt/hgfs/vhosts/memcacheadmin/Library/Command/Server.php on line 275
    
    
    What version of the product are you using? On what operating system?
    
    - phpMemCacheAdmin-1.1.3r161
    
    Please provide any additional information below.
    
    
    

    Original issue reported on code.google.com by [email protected] on 4 Jan 2011 at 10:29

    Priority-Medium auto-migrated Type-Defect 
    opened by GoogleCodeExporter 3
  • Add the possibility to have a read-only phpmemcacheadmin

    Add the possibility to have a read-only phpmemcacheadmin

    Having the ability to flush, add, set and delete directly from phpmemcacheadmin 
    is a little bit dangerous. It would be nice - although it brings no security at 
    all as it will always be possible to do it through telnet - to be able to mask 
    these possibilities in order to avoid an undesired click on "flush all servers" 
    by a user.
    

    Original issue reported on code.google.com by [email protected] on 3 Dec 2010 at 4:45

    Priority-Medium Type-Enhancement auto-migrated 
    opened by GoogleCodeExporter 3
  • how do you access the slabs data

    how do you access the slabs data

    What steps will reproduce the problem?
    1. download v1.1.3
    2. unzip to directory
    3. run the app
    
    What is the expected output? What do you see instead?
    I expected there would be a link to "slabs" report, but I only see links to 
    live stats, stats, issue command, and edit configuration
    
    What version of the product are you using? On what operating system?
    1.1.3 on windows server 2008
    
    Please provide any additional information below.
    I looked through the PHP code and could not find a reference to the slabs 
    report url.
    
    

    Original issue reported on code.google.com by jason%[email protected] on 19 Oct 2010 at 12:50

    Priority-Medium auto-migrated Type-Other 
    opened by GoogleCodeExporter 3
  • use https version of http://chart.apis.google.com

    use https version of http://chart.apis.google.com

    if you are running phpmemcacheadmin on a https server the page complains about 
    mixed usage
    
    because of calls to:
    <img src="http://chart.apis.google.com/chart?
    
    using 1.2.2
    

    Original issue reported on code.google.com by [email protected] on 24 Sep 2014 at 10:06

    Priority-Medium auto-migrated Type-Defect 
    opened by GoogleCodeExporter 2
  • Deprecated: Implicit conversion from float to int loses precision in \Library_Data_Analysis::uptime

    Deprecated: Implicit conversion from float to int loses precision in \Library_Data_Analysis::uptime

    2 instances:

    Deprecated: Implicit conversion from float 60.05361111111111 to int loses precision in C:\inetpub\Intranet_Local\phpmemcachedadmin\Library\Data\Analysis.php on line 253

    Deprecated: Implicit conversion from float 3603.2166666666667 to int loses precision in C:\inetpub\Intranet_Local\phpmemcachedadmin\Library\Data\Analysis.php on line 254

        public static function uptime($uptime, $compact = false)
        {
            if ($uptime > 0) {
                $days = floor($uptime / 60 / 60 / 24);
                $hours = $uptime / 60 / 60 % 24; <----line:253
                $mins = $uptime / 60 % 60; <---line:254
                if (($days + $hours + $mins) == 0) {
                    return ' less than 1 min';
                }
                if ($compact == false) {
                    return $days . ' day' . (($days > 1) ? 's' : '') . ' ' . $hours . ' hr' . (($hours > 1) ? 's' : '') . ' ' . $mins . ' min' . (($mins > 1) ? 's' : '');
                } else {
                    return $days . 'd ' . $hours . 'h ' . $mins . 'm';
                }
            }
            return ' - ';
        }
    
    opened by laurinkeithdavis 0
  • Notice

    Notice "Trying to access array offset on value of type bool"

    image

    I haven't set up anything, I haven't even properly set file permissions. Just freshly downloaded. I don't expect it to work, but this notice is certainly a bug.

    opened by php4fan 0
  • Warning: htmlentities() expects parameter 1 to be string, array given in phpMemcachedAdmin/Library/Bootstrap.php on line 16

    Warning: htmlentities() expects parameter 1 to be string, array given in phpMemcachedAdmin/Library/Bootstrap.php on line 16

    Warning Warning: htmlentities() expects parameter 1 to be string, array given in phpMemcachedAdmin/Library/Bootstrap.php on line 16

    when saving server configuration under Server List

    opened by joglomedia 0
Releases(1.3.0)
  • 1.3.0(Mar 15, 2017)

    Version 1.3.0

    General

    • Search can also delete keys and/or show size and expiration
    • Compressed key value are handled
    • Making Bootstrap file
    • Changing email & various obsolete urls
    • Removed background picture
    • Fixed ‘new version available’ (New URL & bug)
    • Added warning when temporary path and configuration file path is not writable
    • Moved from Google Charts to Highcharts 5.0.9
    • Renaming configuration file to avoid overwriting previous configuration

    Bug Fix

    • #30 Download package is a tarbomb
    • #29 CVE-2014-8732 cross-site scripting security vulnerability
    • #27 Use https version of http://chart.apis.google.com
    Source code(tar.gz)
    Source code(zip)
Owner
Cyrille Mahieux
PHP / Python developper
Cyrille Mahieux
A fast, light-weight proxy for memcached and redis

twemproxy (nutcracker) twemproxy (pronounced "two-em-proxy"), aka nutcracker is a fast and lightweight proxy for memcached and redis protocol. It was

Twitter 11.7k Jan 2, 2023
PHP cache implementation supporting memcached

php cache implementation (PSR-6 and PSR-16) Support for memcached and APCu is included. Memcached $memcached = new Memcached(); $memcached->addServer(

Michael Bretterklieber 1 Aug 11, 2022
Simple artisan command to debug your redis cache. Requires PHP 8.1 & Laravel 9

?? php artisan cache:debug Simple artisan command to debug your redis cache ?? Installation You can install the package via composer: composer require

Juan Pablo Barreto 19 Sep 18, 2022
DataLoaderPhp is a generic utility to be used as part of your application's data fetching layer to provide a simplified and consistent API over various remote data sources such as databases or web services via batching and caching.

DataLoaderPHP is a generic utility to be used as part of your application's data fetching layer to provide a simplified and consistent API over various remote data sources such as databases or web services via batching and caching.

Webedia - Overblog 185 Nov 3, 2022
CLI App and library to manage apc & opcache.

CacheTool - Manage cache in the CLI CacheTool allows you to work with APCu, OPcache, and the file status cache through the CLI. It will connect to a F

Samuel Gordalina 1.4k Jan 3, 2023
A thin PSR-6 cache wrapper with a generic interface to various caching backends emphasising cache tagging and indexing.

Apix Cache, cache-tagging for PHP Apix Cache is a generic and thin cache wrapper with a PSR-6 interface to various caching backends and emphasising ca

Apix 111 Nov 26, 2022
A flexible and feature-complete Redis client for PHP.

Predis A flexible and feature-complete Redis client for PHP 7.2 and newer. ATTENTION: you are on the README file of an unstable branch of Predis speci

Predis 7.3k Jan 3, 2023
Simple and swift MongoDB abstraction.

Monga A simple and swift MongoDB abstraction layer for PHP 5.4+ What's this all about? An easy API to get connections, databases and collections. A fi

The League of Extraordinary Packages 330 Nov 28, 2022
Boost the speed of Kirby by having content files of pages cached, with automatic unique ID, fast lookup and Tiny-URL.

?? Kirby3 Boost ⏱️ up to 3x faster content loading ?? fastest page lookup and resolution of relations Boost the speed of Kirby by having content files

Bruno Meilick 41 Jan 8, 2023
Caching implementation with a variety of storage options, as well as codified caching strategies for callbacks, classes, and output

laminas-cache Laminas\Cache provides a general cache system for PHP. The Laminas\Cache component is able to cache different patterns (class, object, o

Laminas Project 69 Jan 7, 2023
A simple cache library. Implements different adapters that you can use and change easily by a manager or similar.

Desarolla2 Cache A simple cache library, implementing the PSR-16 standard using immutable objects. Caching is typically used throughout an applicatito

Daniel González 129 Nov 20, 2022
The cache component provides a Promise-based CacheInterface and an in-memory ArrayCache implementation of that

Cache Async, Promise-based cache interface for ReactPHP. The cache component provides a Promise-based CacheInterface and an in-memory ArrayCache imple

ReactPHP 330 Dec 6, 2022
A library providing platform-specific user directory paths, such as config and cache

Phirs A library providing platform-specific user directory paths, such as config and cache. Inspired by dirs-rs.

Mohammad Amin Chitgarha 7 Mar 1, 2022
LaraCache is an ORM based package for Laravel to create, update and manage cache items based on model queries

LaraCache Using this package, you can cache your heavy and most used queries. All you have to do is to define the CacheEntity objects in the model and

Mostafa Zeinivand 202 Dec 19, 2022
A simple cache library. Implements different adapters that you can use and change easily by a manager or similar.

Desarolla2 Cache A simple cache library, implementing the PSR-16 standard using immutable objects. Caching is typically used throughout an applicatito

Daniel González 129 Nov 20, 2022
A clean and responsive interface for Zend OPcache information,

A clean and responsive interface for Zend OPcache information, showing statistics, settings and cached files, and providing a real-time update for the information.

Andrew Collington 1.1k Dec 27, 2022
A powerful form builder, for Laravel and other frameworks (stand-alone too)

Former A Laravelish way to create and format forms Former outputs form elements in HTML compatible with your favorite CSS framework (Bootstrap and Fou

null 1.3k Dec 22, 2022
Valitron is a simple, elegant, stand-alone validation library with NO dependencies

Valitron: Easy Validation That Doesn't Suck Valitron is a simple, minimal and elegant stand-alone validation library with NO dependencies. Valitron us

Vance Lucas 1.5k Dec 30, 2022
Slim-Logger - A stand-alone logger class for use with the Slim Framework

Slim-Logger - A stand-alone logger class for use with the Slim Framework

Josh Lockhart 41 Mar 12, 2022
Rah memcached - Store parts of Textpattern CMS templates in Memcached

rah_memcached Packagist | Issues | Donate A plugin for Textpattern CMS that stores parts of your templates in Memcached, a distributed in-memory key-v

Jukka Svahn 2 Aug 12, 2022