xdebug,xhpof,xhpof 现在不更新了,线上 apache+php 每个 httpd 消耗 70M,压力一上来 内存全部吃掉了
![]() | 1 jianzhiyao020 2017-05-12 17:35:49 +08:00 那是 apache 内存使用压力,用 nginx 吧 |
2 hongcha 2017-05-12 17:52:30 +08:00 不更新也能用呀 |
![]() | 3 gouchaoer 2017-05-12 17:54:37 +08:00 via Android apm 探针?换 nginx+php-fpm |
4 ryancao 2017-05-12 23:33:05 +08:00 可以用其他扩展无缝替代 xhprof,推荐 Tideways ( https://github.com/tideways/php-profiler-extension ),本地可以结合 xhgui ( https://github.com/tideways/php-profiler-extension )使用,支持抽样,同时建议 nginx 里面直接 append,不用改代码(比如: fastcgi_param PHP_VALUE "auto_prepend_file=/Users/markstory/Sites/xhgui/external/header.php";) 生产环境建议推荐使用 APM 工具 ,国外可以用 new relic、app dynamics,国内有 oneapm、听云、云智慧等 |
![]() | 7 kuochung 2017-05-13 10:15:50 +08:00 |