Redis服务器配置可实现高性能

时间:2016-04-22 09:57:42

标签: java redis

我使用8gb ram在ubutnu上创建了一个虚拟机,并在redis.conf文件中配置了maxmemory = 4294967296和maxclients 10000,并在/opt/redis文件夹中包含dump.rdb文件,然后在生成1.6 gb dump.rdb文件后抛出< / p>

Exception in thread "main" redis.clients.jedis.exceptions.JedisDataException: OOM command not allowed when used memory > 'maxmemory'.
        at redis.clients.jedis.Protocol.processError(Protocol.java:115)
        at redis.clients.jedis.Protocol.process(Protocol.java:133)
        at redis.clients.jedis.Protocol.read(Protocol.java:202)
        at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connect
ion.java:285)
        at redis.clients.jedis.Connection.getStatusCodeReply(Connection.java:184
)
        at redis.clients.jedis.Jedis.set(Jedis.java:63)
        at mypack.Test6.main(Test6.java:37)

请建议我该怎么办.... 等待回复...........

0 个答案:

没有答案