Home > Database > Redis > Solution to redis error Windows error 0x70

Solution to redis error Windows error 0x70

Release: 2020-06-01 08:57:49
forward
3362 people have browsed it

Solution to redis error Windows error 0x70

redis thinks you don’t have enough memory, so it won’t open a second instance for you. The Windows version of Redis allocates a large memory mapped file for sharing

the heap with the forked process used in persistence operations. This sentence makes it very clear

Solution:

1: Change the maxheap parameter in redis.windows.conf

maxheap 10240000

I failed to solve the problem using this method

2: Start adding the maxheap parameter

redis-server.exe --maxheap 10240000

How many 0s are configured according to the data situation, not too many

D:\soft\redis-2.8.19>redis-server.exe
[6188] 25 Apr 17:24:16.819 #
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.
 
D:\soft\redis-2.8.19>redis-server.exe
[6420] 25 Apr 17:25:01.668 #
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.
Copy after login

For more redis knowledge, please pay attention toredis introductory tutorial column.

The above is the detailed content of Solution to redis error Windows error 0x70. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:cnblogs.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template