[Redis]QForkMasterInit错误的解决…

来源:互联网 发布:无锡亚信数据有限公司 编辑:程序博客网 时间:2024/06/05 19:26
今天在使用Redis的时候出现以下错误:

QForkMasterInit: system error caught. error code=0x000005af, message=VirtualAllocEx failed.

网上查了一次,在国外一篇文章看到了解决方法:
http://www.tuicool.com/articles/m6jmI3

主要原因是磁盘吃紧。
具体解决方法是:
redis的conf文件设置参数maxheap和maxmemory。
maxmemory 120MB 
maxheap 180MB

maxmemory和maxheap根据自己的电脑配置而定,通常情况下:
maxheap  = 1.5 * maxmemory

0 1