推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
moyaya
V2EX  ›  Python

推荐一个好用的 Python Redis 性能分析工具吧?

  •  
  •   moyaya · Nov 15, 2015 · 4858 views
    This topic created in 3973 days ago, the information mentioned may be changed or developed.
    Redis 最近频繁的出现问题,经常占用 CPU 100%,升级内存到 16G 后,仍然不能解决,导致服务器经常出现 504 。

    因此,想找一个好用的 Redis 性能分享工具,定位问题在哪里。

    目前已知的工具:

    Faina : https://github.com/facebookarchive/redis-faina 已经停止更新,不支持我们的 Redis 版本。

    MONITOR : http://redis.io/commands/MONITOR

    请教精通 Redis 的高手们,有什么好的分析工具推荐,谢谢!
    5 replies  •  2015-12-16 12:20:48 +08:00
    cjou
        1
    cjou  
       Nov 15, 2015
    用的 Redis 3.0.x ?
    Redis 一般通过 MONITOR 日志 和 慢查询 就可以定位问题了
    「经常占用 CPU 100%」不像是 Redis 的问题
    应用性能整体分析可以用这个试试
    http://newrelic.com/
    moyaya
        2
    moyaya  
    OP
       Nov 16, 2015
    @cjou Redis 用的是 2.9.3
    yuanalexwu
        3
    yuanalexwu  
       Nov 16, 2015
    我的想法是记录 cpu 的使用 log ,记录 redis 的操作 log ,然后找规律把
    yuanalexwu
        4
    yuanalexwu  
       Nov 16, 2015
    我猜测 匹配出来的高 cpu 时候 redis 的大部分操作都是 0(N)或者更厉害的
    如果是的话要重新设计 redis

    个人的一点点想法 :3
    50vip
        5
    50vip  
       Dec 16, 2015
    http://www.v2ex.com/t/238719

    上几周做的, 有需求可以 issue 。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2318 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 07:46 · PVG 15:46 · LAX 00:46 · JFK 03:46
    ♥ Do have faith in what you're doing.