Error opening Redis server

I load Redis 2.8.19 on windows, it works correctly. But after restarting the computer, I try to open it, and an error message appears:

Redis open server error

[] 5880] May 14 15: 42: 12.227 # The Windows version of Redis allocates a large memory-mapped file for heap sharing using the forked process used in save operations. This file will be created in the current working directory or in the directory specified by the "heapdir" directive in the .conf file. Windows reports that there is not enough free disk space for this file (Windows error 0x70).

You can fix this problem by reducing the size of the Redis heap with the -maxheap flag, or by moving the heap file to a local drive with sufficient space. For more information on the -maxheap and -heapdir flags, see the documentation that comes with binary distributions.

Redis could not go on. Output.

I can’t find the heap file and don’t know how to reduce the size of the Redis heap. Thank!

+4
source share
2 answers

During fork () operations, the overall page commit file will be maximized:

(size of physical memory) + (2 * size of maxheap)

For example, on a machine with 8 GB of physical RAM, the maximum file with the maximum size by default would be (8) + (2 * 8) GB or 24 GB.

If you did not specify Redis, you will receive an error similar to the following:

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.

, -maxheap Redis, , :

redis-server –-maxheap 1gb

: Redis Cache

+6

Redis "redis.windows.conf". "maxheap" "maxheap 1024000000" ( 1024000000). redis .

0

All Articles