- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
在 redis 4.0.9 中检查我的 SLOWLOG,我发现了这个,db no.1:
1) 1) (integer) 5194
2) (integer) 1538107771
3) (integer) 140185
4) 1) "SETEX"
2) "okurl:/en/7055756"
3) "3600"
4) "1"
5) "172.20.100.4:24784"
6) ""
我想知道,这是什么原因造成的。信息:
# Server
redis_version:4.0.9
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:2fd2284b20453690
redis_mode:standalone
os:FreeBSD 11.2-PRERELEASE amd64
arch_bits:64
multiplexing_api:kqueue
atomicvar_api:atomic-builtin
gcc_version:4.2.1
process_id:40220
run_id:ec7f3e8144a681f0efca5e980ccdf39b8a8fdb71
tcp_port:6379
uptime_in_seconds:81007
uptime_in_days:0
hz:10
lru_clock:11384428
executable:/usr/local/bin/redis-server
config_file:/usr/local/etc/redis-sessions.conf
# Clients
connected_clients:429
client_longest_output_list:0
client_biggest_input_buf:0
blocked_clients:0
# Memory
used_memory:5749433062
used_memory_human:5.35G
used_memory_rss:5746385347
used_memory_rss_human:5.35G
used_memory_peak:30520735162
used_memory_peak_human:28.42G
used_memory_peak_perc:18.84%
used_memory_overhead:1280922380
used_memory_startup:1055278
used_memory_dataset:4468510682
used_memory_dataset_perc:77.74%
total_system_memory:0
total_system_memory_human:0B
used_memory_lua:142448640
used_memory_lua_human:135.85M
maxmemory:0
maxmemory_human:0B
maxmemory_policy:noeviction
mem_fragmentation_ratio:1.00
mem_allocator:libc
active_defrag_running:0
lazyfree_pending_objects:0
# Persistence
loading:0
rdb_changes_since_last_save:28274431
rdb_bgsave_in_progress:0
rdb_last_save_time:1538107772
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:35
rdb_current_bgsave_time_sec:-1
rdb_last_cow_size:0
aof_enabled:0
# Stats
total_connections_received:232817201
total_commands_processed:1640805022
instantaneous_ops_per_sec:22264
total_net_input_bytes:116006836822
total_net_output_bytes:56698168188
instantaneous_input_kbps:1470.51
instantaneous_output_kbps:639.40
rejected_connections:0
sync_full:0
sync_partial_ok:0
sync_partial_err:0
expired_keys:28093034
expired_stale_perc:29.33
expired_time_cap_reached_count:0
evicted_keys:0
keyspace_hits:399489929
keyspace_misses:93415724
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:645655
migrate_cached_sockets:0
slave_expires_tracked_keys:0
active_defrag_hits:0
active_defrag_misses:0
active_defrag_key_hits:0
active_defrag_key_misses:0
# Keyspace
db0:keys=8517091,expires=8516507,avg_ttl=14897082
db1:keys=4938456,expires=4805686,avg_ttl=1455726323
也许是因为redis正在将转储文件写入文件系统,所以速度变慢了?或者可能是其他一些阻塞命令正在运行? (我没有使用 KEYS,但还有其他命令可以使它变慢?)
最佳答案
I am not using KEYS, but there are other commands which could make this slow down?
如果它们各自的执行时间很长,slowlog 中的命令就会到达那里 - 其他命令不会影响它(例如 KEYS 或其他任何东西)。
checking my SLOWLOG in redis 4.0.9, I found this
检查 SLOWLOG 是一种很好的做法,应该定期进行。也就是说,由于多种原因,其中的单个慢速命令可能是异常值。除非是病态的,否则我不会担心。
关于Redis SETEX 慢,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52548725/
在 redis 4.0.9 中检查我的 SLOWLOG,我发现了这个,db no.1: 1) 1) (integer) 5194 2) (integer) 1538107771 3) (i
以下用于正常工作: redis_client.setex(key, expiry_in_sec, value_json) 现在它突然返回: 值不是整数或超出范围 最佳答案 问题出在不同的 redis
如果我使用 setex 设置一个过期的 key ,然后使用 set 更新该 key 的值,set删除过期属性? setex testKey 10 val123 5 秒后... 设置 testKey v
SETEX 是一个有用的 Redis 命令,通过它可以在单个原子操作中设置键的 value 和 expiry。 是否有一个等效的操作可以使一个人以原子方式检索 key 的 value 和 ttl?我知
我正在尝试通过 Flask 使用 Redis 创建服务器端 session 。 Redis-server 似乎运行良好,但 Flask 在实现 example class on Flask 时一直给我
我正在使用以下代码从我的 Go 应用程序执行 SET 和 EXPIRE。 _, err = C.Cache.Do("SETEX", key, 3600, data) 但我开始收到错误消息:使用已关闭的
我在使用 Redis 缓存时间=0 时遇到错误。同时使用 Redis 缓存时间=1,它按预期工作。 如何设置Redis缓存时间值为0,求助 错误信息 "Message":"An error has o
我正在尝试将包含大约 5000 条记录的字典中的记录写入 Redis 缓存。但有时我会遇到以下异常,我不知道为什么会收到此错误,我已经在互联网上进行了检查,但找不到此问题的任何解决方案或根本原因。 u
我是一名优秀的程序员,十分优秀!