LoginSignup
3
2

More than 5 years have passed since last update.

memcached-toolメモ

Last updated at Posted at 2015-01-05

install

memcached入れたら勝手に入ってる
memcachedの中に入ってるものを人間にわかりやすく教えてくれる

usage

[root@test-fuka01 ~]# memcached-tool
Usage: memcached-tool <host[:port]> [mode]

       memcached-tool 10.0.0.5:11211 display    # shows slabs
       memcached-tool 10.0.0.5:11211            # same.  (default is display)
       memcached-tool 10.0.0.5:11211 stats      # shows general stats
       memcached-tool 10.0.0.5:11211 dump       # dumps keys and values

ほんまこのまんまやねんけどね

dumpとか便利
key一覧をtelnetで無理してうんたらくんたらして出す必要がなくなる。

使ったことある系

  • 対象にサクッと何item入ってるか
[root@test-fuka01 mcb]# ./mcb -c set -t 100 -n 100 -l 10 -a test-mem01.kakeru.com -p 11211                             
condition =>
        connect to test-mem01.kakeru.com TCP port 11211
        command = set
        100 threads run
        send 100 commands a thread, total 10000 commands
        average data length = 10
result =>
        interval =  1.074832 [sec]
        performance =  9303.779891 [commands/sec]
        thread info:
          ave. = 0.428156[sec], min = 0.146873[sec], max = 1.072446[sec]

[root@test-fuka01 mcb]# memcached-tool test-mem01.kakeru.com:11211 dump | grep Number
Dumping memcache contents
  Number of buckets: 1
  Number of items  : 1000
Dumping bucket 1 - 1000 total items
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2