Chinaunix首页 | 论坛 | 博客
  • 博客访问: 145927
  • 博文数量: 40
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 410
  • 用 户 组: 普通用户
  • 注册时间: 2014-02-11 09:11
文章分类

全部博文(40)

文章存档

2020年(1)

2017年(36)

2014年(3)

我的朋友

分类: 服务器与存储

2017-03-19 11:24:12

memcached.h中规定key的长度要小于250byte

slab(value)的长度限制默认是1M,可以使用-I选项更改此限制

-I            Override the size of each slab page. Adjusts max item size
              (default: 1mb, min: 1k, max: 128m)

要增加的话,启动时添加-I 10m参数就可以,会有一个警告:

WARNING: Setting item max size above 1MB is not recommended! Raising this limit increases the minimum memory requirements and will decrease your memory efficiency.
阅读(1411) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~