Redis无法启动You may fix this problem by either reducing the size of the Redis heap with the --maxheap

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,终于可以启动了。

时间: 2024-10-14 13:08:03

Redis无法启动You may fix this problem by either reducing the size of the Redis heap with the --maxheap的相关文章

安装wampserver出现“The Program can&#39;t start because MSVCR110.dll is missing from your computer. Try reinstalling the program to fix this problem”

问题描述: 今天安装wampserver的时候出现"The Program can't start because MSVCR110.dll is missing from your computer. Try reinstalling the program to fix this problem"弹窗报错,以至于无法启动wampserver 安装条件:Win7 系统, 64 位, 安装软件: WAMPSERVER 64 BITS (X64) 3.0.6 原因分析: MSVCR110

redis配置&amp;&amp;启动方式

redis的配置 redis的配置文件 在redis的解压目录中,有一个redis.conf配置文件: 此时我们将之复制到redis的bin同级目录下: [root@hadoop1 redis]# ll 总用量 68 drwxr-xr-x. 2 root root 4096 2月 28 04:39 bin -rw-r--r--. 1 root root 62155 2月 28 04:46 redis.conf [root@hadoop1 redis]# pwd /usr/redis 备注:其实没

Redis开机启动脚本 Centos6.5

一:安装Redis 1.下载源码,解压缩后编译源码 # wget http://download.redis.io/releases/redis-2.8.3.tar.gz # tar xzf redis-2.8.3.tar.gz # cd redis-2.8.3 # make 2.进入安装目录的src文件夹下,有四个可执行文件redis-server.redis-benchmark.redis-cli和redis.conf,复制到同一个目录下 # mkdir /usr/redis # cp re

The project was not built due to &quot;Could not delete ...&quot;.Fix the problem, then try refreshing this project and building it since it may be inconsistent.

问题:The project was not built due to "Could not delete ...".Fix the problem, then try refreshing this project and building it since it may be inconsistent. 原因:因为myeclipse编译文件的时候需要把之前的删掉重新编译一次,但是你有一个class被占用,如:目录路径在dos里面打开,所以没法删除,就报这个错...所以要做的就是把占

The project was not built due to &quot;Could not delete &#39;&#39;.&quot;. Fix the problem, then try refreshing this p

Eclipse修改完Java类文件保存之后,项目上出现了错误提示,如图: 但是项目的文件都没有提示错误, 打开Problems窗口会看到具体的错误信息: The project was not built due to "Could not delete ".". Fix the problem, then try refreshing this project and building it since it may be inconsistent SimpleMetada

linux centOS7 设置 redis 开机启动

1.为了让redis-server能在系统启动时自动运行,需要将redis服务作为守护进程(daemon)来运行,我们回/usr/local/cluster/7000/目录中找到一个redis.conf的文件,这个文件是redis服务运行时加载的配置,我们先观察一下其中的内容 [[email protected]192 7000]# vi redis.conf 输入/daemonize 此文件内容非常长,但是大部分是注释,我们重点关注其中的几个设置daemonize和pidfile: 其中dae

redis前端启动和后台启动的区别

Part I. 直接启动下载官网下载安装tar zxvf redis-2.8.9.tar.gzcd redis-2.8.9#直接make 编译make#可使用root用户执行`make install`,将可执行文件拷贝到/usr/local/bin目录下.这样就可以直接敲名字运行程序了.make install 启动#加上`&`号使redis以后台程序方式运行./redis-server & 检测#检测后台进程是否存在ps -ef |grep redis #检测6379端口是否在监听ne

The project was not built due to &quot;Could not delete &#39;/XXX/WebRoot/WEB-INF/classes/library&#39;.&quot;. Fix the problem, then try refreshing this project and building

在构建插件时提示如下错误: Description Resource Path Location Type The project was not built due to "Could not delete ' 在网上查找时发现,最简单的解决方法是:project-->clean,选择出错的工程,点击确定错误即可消除. The project was not built due to "Could not delete '/XXX/WebRoot/WEB-INF/classes

Linux Redis自动启动,Redis开机启动,Linux Redis设置开机启动

Linux Redis自动启动,Redis开机启动,Linux Redis设置开机启动 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ©Copyright 蕃薯耀 2017年7月21日 http://www.cnblogs.com/fanshuyao/ Linux Redis安装,Linux如何安