radis闪退

2023-03-29  本文已影响0人  浮若年华_7a56

点击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

上一篇 下一篇

猜你喜欢

热点阅读