美文网首页
radis闪退

radis闪退

作者: 浮若年华_7a56 | 来源:发表于2023-03-29 13:11 被阅读0次

    点击redis.server.eve闪退
    在redis文件夹下的cmd输入radis-server.eve redis.windows.conf
    报错


    1680152849326.png

    查询百度后说是最大堆大小maxheap配置的问题,是因为可用的内存不足,不能满足maxheap配置的条件,所以无法启动
    解决方法
    打开redis的配置文件redis.windows.conf找到以下代码部分

    The Redis heap must be larger than the value specified by the maxmemory

    flag, as the heap allocator has its own memory requirements and

    fragmentation of the heap is inevitable. If only the maxmemory flag is

    specified, maxheap will be set at 1.5*maxmemory. If the maxheap flag is

    specified along with maxmemory, the maxheap flag will be automatically

    increased if it is smaller than 1.5*maxmemory.

    maxheap <bytes>

    在代码上加上这一行maxheap 51200000

    相关文章

      网友评论

          本文标题:radis闪退

          本文链接:https://www.haomeiwen.com/subject/aosfddtx.html