首页 / REDIS / Redis无法启动You may fix this problem by either reducing the size of the Redis heap with the --maxheap
Redis无法启动You may fix this problem by either reducing the size of the Redis heap with the --maxheap
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了Redis无法启动You may fix this problem by either reducing the size of the Redis heap with the --maxheap,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1788字,纯文字阅读大概需要3分钟。
内容图文
![Redis无法启动You may fix this problem by either reducing the size of the Redis heap with the --maxheap](/upload/InfoBanner/zyjiaocheng/1157/4ca067a711a945b89e0708554aa87e06.jpg)
Redis无法启动
今天在启动Redis时提示以下错:
C:\Java\redis2817>redis-server.exe redis.windows.conf
[5268] 23 Apr 11:45:22.696 #
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 ”配置的问题,是因为可用的内存不足,不 能满足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
默认的值是:maxheap 1024000000,
我这因为剩余可用的内存太小了,
所以将其改为:maxheap 51200000,终于可以启动了。
原文:http://blog.csdn.net/testcs_dn/article/details/45220197
内容总结
以上是互联网集市为您收集整理的Redis无法启动You may fix this problem by either reducing the size of the Redis heap with the --maxheap全部内容,希望文章能够帮你解决Redis无法启动You may fix this problem by either reducing the size of the Redis heap with the --maxheap所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。