Tornado Documentation
http://www.sunp.eu.org/tornado/
Tornado on GitHub
https://github.com/facebook/tornado/
Tornado Gists
http://tornadogists.org/
Kai
1.51D
1.89D
V2EX  ›  Tornado

访问量增加导致 CPU 占用率增长,最有效的优化方式是什么呢?

  •  
  •   Kai · Mar 17, 2013 · 4947 views
    This topic created in 4826 days ago, the information mentioned may be changed or developed.
    最近 App 限时免费,结果因为请求次数增长导致 CPU 占用率飙升之 70%。请问在 Tornado 结构下,除了升级配置外,有没有什么简单有效的优化措施?具体的 CPU 占用应该都是 MySQL 查询造成的。
    3 replies    1970-01-01 08:00:00 +08:00
    clowwindy
        1
    clowwindy  
       Mar 17, 2013   ❤️ 1
    是 MySQL 还是 Tornado 用的?如果是 Tornado,可以 profile 一下看看时间花在什么上了。
    phuslu
        2
    phuslu  
       Mar 17, 2013   ❤️ 1
    Kai
        3
    Kai  
    OP
       Mar 17, 2013 via iPhone
    感谢!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5674 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 01:29 · PVG 09:29 · LAX 18:29 · JFK 21:29
    ♥ Do have faith in what you're doing.