redis报错Windows error 0x70--记录一次服务器雪崩异常

本文解决了一个常见的Redis运行错误,当Windows报告由于磁盘空间不足无法创建用于持久化操作的内存映射文件时,提供了详细的解决步骤。包括调整maxheap参数和移动堆文件到有足够空间的本地驱动器。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

错误信息如下:
The Windows version of Redis allocates a large memory mapped file for sharing
the heap with the forked process used in persistence operations. This file
will be created in the current working directory or the directory specified by
the 'heapdir' directive in the .conf file. Windows is reporting that there is
insufficient disk space available for this file (Windows error 0x70).

You may fix this problem by either reducing the size of the Redis heap with
the --maxheap flag, or by moving the heap file to a local drive with sufficient
space.
Please see the documentation included with the binary distributions for more
details on the --maxheap and --heapdir flags.

Redis can not continue. Exiting.
解决办法:

1:改redis.windows.conf中的maxheap参数

maxheap 10240000

这个方法我使用未能解决

2:启动加maxheap参数

redis-server.exe --maxheap 10240000

多少个0根据数据情况配置,不要太多了

以上两种方法不生效
后删除了redis历史数据位置默认在C:Users***AppDataLocalRedis
删除后即可启动redis

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值