radis闪退
2023-03-29 本文已影响0人
浮若年华_7a56
点击redis.server.eve闪退
在redis文件夹下的cmd输入radis-server.eve redis.windows.conf
报错
![](https://img.haomeiwen.com/i13117714/dfe8c5cb796a4f1f.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