标题:使用pprof和go-torch排查golang的性能问题 出处:Felix021 时间:Sat, 21 Sep 2019 15:19:11 +0000 作者:felix021 地址:https://www.felix021.com/blog/read.php?2210 内容: 最近线上服务压力很大,api的p99有点扛不住。 广告业务对延时的要求普遍比较严格,有些adx设置的超时时间低至100ms,因此亟需找出性能热点。 根据对目前系统情况的估计(和metrics埋点数据),大致估计问题出在广告的正排环节。 使用 pprof 也证明了这一块确实是热点: 引用 $ go tool pprof http://$IP:$PORT/debug/pprof/profile ... (pprof) top 10 Showing nodes accounting for 25.50s, 32.63% of 78.14s total Dropped 1533 nodes (cum Generated by Bo-blog 2.1.0