Open GoogleCodeExporter opened 8 years ago
Error occurs here:
$slabs[$id]['request_rate'] = @sprintf('%.1f', ($slab['get_hits'] +
$slab['cmd_set'] + $slab['delete_hits'] + $slab['cas_hits'] +
$slab['cas_badval'] + $slab['incr_hits'] + $slab['decr_hits']) /
$slabs['uptime'], 1);
$slabs[$id]['mem_wasted'] = (($slab['total_chunks'] * $slab['chunk_size']) < $slab['mem_requested']) ?(($slab['total_chunks'] - $slab['used_chunks']) * $slab['chunk_size']):(($slab['total_chunks'] * $slab['chunk_size']) - $slab['mem_requested']);
Original comment by cberga...@gmail.com
on 15 Feb 2013 at 9:32
Hello,
Does this bug produce only when your cache is empty or every time ?
Original comment by c.mahi...@of2m.fr
on 18 Feb 2013 at 8:48
Everytime
Original comment by cberga...@gmail.com
on 18 Feb 2013 at 9:11
I have the same. Massive entrys in the log. Line 246 and 247
Original comment by oliver.t...@gmail.com
on 7 Mar 2013 at 6:04
Adding this above those lines will fix it:
if (!isset($slab['get_hits'])) $slab['get_hits'] = 0;
if (!isset($slab['cmd_set'])) $slab['cmd_set'] = 0;
if (!isset($slab['delete_hits'])) $slab['delete_hits'] = 0;
if (!isset($slab['cas_hits'])) $slab['cas_hits'] = 0;
if (!isset($slab['cas_badval'])) $slab['cas_badval'] = 0;
if (!isset($slab['incr_hits'])) $slab['incr_hits'] = 0;
if (!isset($slab['decr_hits'])) $slab['decr_hits'] = 0;
if (!isset($slab['mem_requested'])) $slab['mem_requested'] = 0;
Or you can just turn notices off.
Original comment by rvel...@freepromarketing.com
on 8 Mar 2013 at 3:43
Two fixes here:
Either add error_reporting(E_ALL ^ E_NOTICE); at the top of the index.php file.
(Bad way but it will hide the notices).
Or add the following code (solution posted above) line 246 in the
Library/Data/Analysis.php file:
if (!isset($slab['get_hits'])) $slab['get_hits'] = 0;
if (!isset($slab['cmd_set'])) $slab['cmd_set'] = 0;
if (!isset($slab['delete_hits'])) $slab['delete_hits'] = 0;
if (!isset($slab['cas_hits'])) $slab['cas_hits'] = 0;
if (!isset($slab['cas_badval'])) $slab['cas_badval'] = 0;
if (!isset($slab['incr_hits'])) $slab['incr_hits'] = 0;
if (!isset($slab['decr_hits'])) $slab['decr_hits'] = 0;
if (!isset($slab['mem_requested'])) $slab['mem_requested'] = 0;
Original comment by raphael....@gmail.com
on 14 Nov 2014 at 10:33
Hmm, I didn't have any of those problems with php7. Is this a resolved bug? (I haven't tried phpmemcachedadmin with php5 but php 5.3 is EOL.
Similar issue with PMCA 1.3.0 and Memcache 1.5.17 to 1.5.19:
mem_requested
moved from slab stats to item stats, as per https://github.com/memcached/memcached/wiki/ReleaseNotes1517
So in Analysis::slabs()
, one needs to fetch either $slab['mem_requested']
for earlier versions, or $slab['items:mem_requested']
for newer versions.
Original issue reported on code.google.com by
cberga...@gmail.com
on 15 Feb 2013 at 9:12