QForkMasterInit: system error caught. error code=0x000005af, message=VirtualAllocEx failed.(遇到还没试过)(

Posted zouhong

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了QForkMasterInit: system error caught. error code=0x000005af, message=VirtualAllocEx failed.(遇到还没试过)(相关的知识,希望对你有一定的参考价值。

今天在使用Redis的时候出现以下错误:

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

主要原因是磁盘吃紧。

 具体解决方法是:

redis的conf文件设置参数maxheap和maxmemory。

maxmemory 120MB 

maxheap 180MB

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

maxheap  = 1.5 * maxmemory

以上是关于QForkMasterInit: system error caught. error code=0x000005af, message=VirtualAllocEx failed.(遇到还没试过)(的主要内容,如果未能解决你的问题,请参考以下文章