我使用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)
请建议我该怎么办.... 等待回复...........