Skip to content

Instantly share code, notes, and snippets.

@anthavio
Created December 18, 2014 22:11
Show Gist options
  • Save anthavio/38d0ba4c916ab1911a47 to your computer and use it in GitHub Desktop.
Save anthavio/38d0ba4c916ab1911a47 to your computer and use it in GitHub Desktop.
redis windows errors
redis 2.8.17
[5288] 18 Dec 22:04:02.908 #
The Windows version of Redis allocates a memory mapped heap for sharing with
the forked process used for persistence operations. In order to share this
memory, Windows allocates from the system paging file a portion equal to the
size of the Redis heap. At this time there is insufficient contiguous free
space available in the system paging file for this operation (Windows error
0x5AF). To work around this you may either increase the size of the system
paging file, or decrease the size of the Redis heap with the --maxheap flag.
Sometimes a reboot will defragment the system paging file sufficiently for
this operation to complete successfully.
Please see the documentation included with the binary distributions for more
details on the --maxheap flag.
Redis can not continue. Exiting.
redis 2.8.9
$ ./src/main/resources/windows/redis-server.exe
[5508] 18 Dec 22:05:06.239 # QForkMasterInit: system error caught. error code=0x000005af, message=VirtualAllocEx failed.: unknown error
@omerdn1
Copy link

omerdn1 commented Jan 7, 2015

Same error for me too.

@niemyjski
Copy link

+1

@niemyjski
Copy link

I fixed it by setting
maxheap 1000000000 in my config

@robinsedlaczek
Copy link

+1

@KirylKovaliov
Copy link

+1

@aziz-a-rahman
Copy link

maxheap 1000000000 , this doesnt solve the issue, still getting same error. Any suggestions please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment