DAOCLOUD
推荐学习书目
Python Cookbook
Using Google App Engine
推荐下载
Latest Google App Engine SDK
其他兼容技术
AppScale
jckwei

解读 GAE 后台 log:49ms 70cpu_ms 4kb,“4kb”是不是指本次请求流量?

  •  
  •   jckwei · Jan 28, 2011 · 5021 views
    This topic created in 5653 days ago, the information mentioned may be changed or developed.
    如果是那就有点疑惑, 详细借步阅读 《关于 GAE 数据流量的疑惑》 http://gaebbs.xibu.biz/p/279001

    输出的 html 文本大小差不多,而使用Django或Django模板却能省这么多的流量,
    真的是Django的原因吗?

    不知道大家有没有遇到这样的问题?
    2 replies    1970-01-01 08:00:00 +08:00
    darasion
        1
    darasion  
       Jan 28, 2011
    不保证正确:
    http://stackoverflow.com/questions/4440159/gae-j-request-log-format-breakdown

    至于html为啥跟log中的大小不一样,可能是浏览器下载保存html的时候,自动加上了绝对路径的缘故,这样html文件就比实际输出大了不少。

    当然,都是我猜的。
    ayanamist
        2
    ayanamist  
       Jan 28, 2011
    我觉得原因应该是前者用了Gzip压缩,而后者没有
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5377 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 54ms · UTC 08:17 · PVG 16:17 · LAX 01:17 · JFK 04:17
    ♥ Do have faith in what you're doing.