-
Notifications
You must be signed in to change notification settings - Fork 102
无法执行redis-cli-new #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
下载个 redis-3.2.x 的源码 , 把 redis-cli-new.c 覆盖 redis-cli.c ; 执行make 编译重新生成一个二进制文件试试呢 |
通过你上面的回复,可以执行脚本了。但是跟理论的不太一样,比如我执行下面的脚本,理想的输出是最大的两个key,但结果却不只两个,而且不是按照从大到小的顺序排列的。请帮忙确定是否正常?只截图了部分信息,后面还有 summary 、Backtrace、Memory map等信息 Scanning the entire keyspace to find biggest keys as well asaverage sizes per key type. You can use -i 0.1 to sleep 0.1 secper 100 SCAN commands (not usually needed).[00.00%] Biggest string found so far 'Trend021662_20180830_20180829_JZZRJJHXL' with 517 bytes -------- summary ------- |
[32.35%] Biggest string found so far 'CarService_CTDe0021662_20180830_shbu' with 2298 bytes |
额,挂了么,,,把,挂的那一串东西贴我下呢,我查查 |
redis版本:3.2.9。执行后输出信息见附件 |
感谢,这里其实结果已经出来了,但是在最后free对象的时候出错了, |
这里麻烦重新拉一下代码编译一下, 我在我这边编译,奇怪的没能复现,但根据这个crash的地方确实是这里处理有问题, |
通过你上面的建议,已经成功了,非常感谢。想问下,这种扫描消耗性能大吗?加入我的生产环境有上亿级的key,top5的话,会不会损害redis性能?有相关说明吗 |
在不指定 -i 的情况下, 这个程序是会尽全力跑出结果的;会带来5k~7k的qps |
在redis-cluster的slave上,无法执行上述命令。直接提示Invalid reply type (6) for TYPE on key 'spring:session:pamirs:sessions:expires:c32d695d-cbd2-4580-9e38-2aa77a158add'! |
提示无法执行二进制文件-bash: ./redis-cli-new: cannot execute binary file。请问是怎么回事
The text was updated successfully, but these errors were encountered: