0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

stats cachedumpの上限

Posted at
$ echo -e "stats items"|nc localhost 11211

...

STAT items:10:number 200000

みたいなデータのキー一覧を取得しようとして

$ echo -e "stats cachedump 10 200000"|nc localhost 11211 > dump

$ wc -l dump
25000 dump

$ ls -lh dump
-rw-r--r-- 1 owner group 2.0M  4月 16 13:04 dump

だったりすることがある。

全件とれないのでおかしいなぁと思っていたら

items.c
char *item_cachedump(const unsigned int slabs_clsid, const unsigned int limit, unsigned int *bytes) {
    unsigned int memlimit = 2 * 1024 * 1024;   /* 2MB max response size */

上限ありましたかー。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?