• Stars
    star
    104
  • Rank 330,604 (Top 7 %)
  • Language
    Ruby
  • License
    Academic Free Lic...
  • Created about 16 years ago
  • Updated over 12 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A heap inspector for live memcached instances.

peep

A heap inspector for live memcached instances.

LicenseΒΆ ↑

Copyright 2009 Cloudburst, LLC. Licensed under the AFL 3. See the included LICENSE file.

FeaturesΒΆ ↑

  • it works

InstallationΒΆ ↑

x86 Linux is required.

You need memcached compiled with debugging symbols:

CFLAGS='-g' ./configure 
make
sudo make install

Now install the gem:

sudo gem install peep -- --with-memcached-include=/path/to/memcached/source

UsageΒΆ ↑

Find the pid of a live memcached server. Then run:

peep --pretty $pid

or

peep --ugly $pid

Please note that memcached is fully blocked while peep is running.

Peep is also usable as a library, for statistics gathering or deeper inspection.

Sample outputΒΆ ↑

eweaver@ubuntu:~$ peep 32589
  time | exptime | nbytes | nsuffix | it_f | clsid | nkey |                                    key | exprd | flushd
  8658 |  613458 |    272 |       8 | link |     5 |   31 |      "element2-benchmark:c3RhdH:171:5" | false |  false
  8658 |       0 |      6 |       6 | link |     1 |   35 |  "element2-benchmark:current_c3RhdH:3" | false |  false
  8658 |  613458 |    281 |       8 | link |     5 |   32 |     "element2-benchmark:c3RhdH:171:26" | false |  false
  8678 |   95078 |      6 |       6 | link |     1 |   35 |  "element2-benchmark:User:1:auth:m4Uq" | false |  false
  8658 |       0 |      8 |       6 | link |     2 |   34 |   "element2-benchmark:user_dGltZWxp:4" | false |  false
  8686 |  613486 |   1278 |       9 | link |     9 |   27 |          "element2-benchmark:User:1:6" | false |  false
  8658 |  613458 |   1286 |       9 | link |     9 |   27 |          "element2-benchmark:User:1:4" | false |  false
  8658 |  613458 |    283 |       8 | link |     5 |   32 |     "element2-benchmark:c3RhdH:171:28" | false |  false
  8658 |  613458 |    277 |       8 | link |     5 |   32 |     "element2-benchmark:c3RhdH:171:30" | false |  false
  ...

More Repositories

1

has_many_polymorphs

An ActiveRecord plugin for self-referential and double-sided polymorphic associations.
Ruby
202
star
2

bleak_house

A Ruby library for finding memory leaks
Ruby
189
star
3

ultrasphinx

Ruby on Rails configurator and client to the Sphinx full text search engine
Ruby
170
star
4

mongrel

Mongrel
Ruby
144
star
5

echoe

A Rubygems packaging tool that provides Rake tasks for documentation, extension compiling, testing, and deployment
Ruby
82
star
6

interlock

A Rails plugin for maintainable and high-efficiency caching
Ruby
75
star
7

ccsv

A pure-C CSV parser for Ruby
Ruby
64
star
8

raspell

A Ruby binding for the Aspell spelling checker
C
59
star
9

sweeper

A Ruby script to automatically tag your music collection with metadata from Last.fm
Ruby
32
star
10

thrift-rb

Ruby bindings for Thrift, with patches.
Ruby
18
star
11

allison

A modern, pretty RDoc template
Ruby
11
star
12

sinatra-jar

Sample monolithic dependency-free Sinatra JAR
Ruby
11
star
13

heroku-hello-world-tests

Ruby
9
star
14

kirby

A super-clean IRC bot with sandboxed Ruby evaluation, repository watching, and link-logging to del.icio.us
Ruby
9
star
15

benchmark_unit

Machine-independent benchmark assertions for your Ruby unit tests
Ruby
7
star
16

fftw3

Gem version of T. Horinouchi's ruby-fftw3.
C
7
star
17

rv

A little init.d system for running Camping apps
Ruby
6
star
18

twist

A Ruby script for logging your system events to Twitter
Ruby
6
star
19

mysqlconfs

MySQL configuration examples
5
star
20

charm_http

A parallel EC2 driver for running the hummingbird HTTP load testing tool against Heroku.
Ruby
4
star
21

shadow

A zero-configuration RESTful ActiveRecord server
Ruby
3
star
22

autobench-grapher

Ruby
2
star
23

wordpress_importer

Script that can import a homegrown blog into WXR format for WordPress.com.
Ruby
1
star
24

cloudbur.st

Cloudbur.st static assets
HTML
1
star
25

js-node

JavaScript
1
star
26

bax

A hacky blog engine that runs via recursive SSI includes
Ruby
1
star
27

scala-finagle

Scala
1
star
28

search_benchmark

Ruby
1
star
29

stub

A stub gem, including C extension.
Ruby
1
star