AlloVince
V2EX  ›  PHP

使用 xhprof 进行线上 PHP 性能追踪及分析

  •  1
     
  •   AlloVince · Dec 28, 2014 · 5684 views
    This topic created in 4330 days ago, the information mentioned may be changed or developed.

    最近的一些经验总结,欢迎指正

    http://avnpc.com/pages/profiler-php-performance-online-by-xhprof

    11 replies  •  2015-01-11 21:09:50 +08:00
    wwek
    wwek
    Dec 28, 2014
    1
    看了这篇文,不错的实践。
    同时也推荐大家用xhprof 做php性能分析。
    anewg
    anewg
    Dec 29, 2014
    2
    难得看到原创技术贴,支持
    dongbeta
    dongbeta
    Dec 29, 2014
    3
    请问你们是对所有请求都分析,还是只分析一定比例?
    thankyourtender
    thankyourtender
    Dec 29, 2014
    4
    你们不知道 blackfire?
    AlloVince
    AlloVince
    OP
    Dec 29, 2014
    5
    @dongbeta 线上常规都是关闭的,如果发现负载问题,会针对消耗较大的URL单独开启。
    br00k
    br00k
    Dec 29, 2014
    6
    一直想尝试,有空试试。
    AlloVince
    AlloVince
    OP
    Dec 29, 2014
    7
    @thankyourtender 对于墙外的需要并且安装php扩展的监控程序我们都持保留态度。前一段时间尝试过线上使用newrelic,估计是因为墙的原因,造成了php-fpm进程阻塞,具体表现为netstat中php-fpm开启的端口始终不回收,墙内环境使用墙外服务器很难保证服务的稳定性
    bdnet
    bdnet
    Dec 30, 2014
    8
    前段时间折腾了一下 xhprof ,感觉还不错,就 GUI 工具有点乱,也不尽人意。
    AlloVince
    AlloVince
    OP
    Dec 30, 2014
    10
    Preview

    mingyun
    mingyun
    Jan 11, 2015
    11
    好赞
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1563 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 23:37 · PVG 07:37 · LAX 15:37 · JFK 18:37
    ♥ Do have faith in what you're doing.