Skip to content
This repository has been archived by the owner on Nov 27, 2021. It is now read-only.

JedisDataException #9

Open
ilyaml118 opened this issue Dec 17, 2014 · 0 comments
Open

JedisDataException #9

ilyaml118 opened this issue Dec 17, 2014 · 0 comments

Comments

@ilyaml118
Copy link

Hi,mathieucarbou
I ncountered a problem.I used jetty-session-redis to manage sessions in my application.And set maxmemory 1073741824.After some days,my application throws a JedisDataException.The I check the info about redis.It like that ..

Server

redis_version:2.6.13
redis_git_sha1:00000000
redis_git_dirty:0
redis_mode:standalone
os:Linux 2.6.32-220.el6.x86_64 x86_64
arch_bits:64
multiplexing_api:epoll
gcc_version:4.4.6
process_id:4240
run_id:c083929bc6d87dd8040e31ebd54d3529445f9700
tcp_port:6370
uptime_in_seconds:5048530
uptime_in_days:58
hz:10
lru_clock:1325714

Clients

connected_clients:13
client_longest_output_list:0
client_biggest_input_buf:5
blocked_clients:0

Memory

used_memory:1073763352
used_memory_human:1.00G
used_memory_rss:1210474496
used_memory_peak:1077932944
used_memory_peak_human:1.00G
used_memory_lua:31744
mem_fragmentation_ratio:1.13
mem_allocator:jemalloc-3.2.0

Persistence

loading:0
rdb_changes_since_last_save:0
rdb_bgsave_in_progress:0
rdb_last_save_time:1418344888
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:7
rdb_current_bgsave_time_sec:-1
aof_enabled:0
aof_rewrite_in_progress:0
aof_rewrite_scheduled:0
aof_last_rewrite_time_sec:-1
aof_current_rewrite_time_sec:-1
aof_last_bgrewrite_status:ok

Stats

total_connections_received:133186
total_commands_processed:5505726311
instantaneous_ops_per_sec:65
rejected_connections:0
expired_keys:1945695
evicted_keys:158476
keyspace_hits:65750982
keyspace_misses:31173
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:29585

Replication

role:master
connected_slaves:0

CPU

used_cpu_sys:7515.07
used_cpu_user:21328.05
used_cpu_sys_children:8893.95
used_cpu_user_children:92891.41

Keyspace

db0:keys=1,expires=0

The only one key is 'jetty-sessions'.It is so big that throws exception:redis.clients.jedis.exceptions.JedisDataException: redis.clients.jedis.exceptions.JedisDataException: OOM command not allowed when used memory > 'maxmemory'.
at redis.clients.jedis.Protocol.processError(Protocol.java:54)
at redis.clients.jedis.Protocol.process(Protocol.java:61)
at redis.clients.jedis.Protocol.read(Protocol.java:122)
at redis.clients.jedis.Connection.getIntegerReply(Connection.java:178)
at redis.clients.jedis.Jedis.sadd(Jedis.java:1161)
at com.ovea.jetty.session.redis.RedisSessionIdManager$3.execute(RedisSessionIdManager.java:85)
at com.ovea.jetty.session.redis.PooledJedisExecutor.execute(PooledJedisExecutor.java:36)
at com.ovea.jetty.session.redis.RedisSessionIdManager$1.execute(RedisSessionIdManager.java:65)
at com.ovea.jetty.session.redis.RedisSessionIdManager.storeClusterId(RedisSessionIdManager.java:82)
at com.ovea.jetty.session.SessionIdManagerSkeleton.addSession(SessionIdManagerSkeleton.java:136)
at org.eclipse.jetty.server.session.AbstractSessionManager.addSession(AbstractSessionManager.java:677)
at org.eclipse.jetty.server.session.AbstractSessionManager.newHttpSession(AbstractSessionManager.java:549)
at org.eclipse.jetty.server.Request.getSession(Request.java:1176)
at org.eclipse.jetty.server.Request.getSession(Request.java:1153)
................
Help please.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant