yc1258 commented on issue #1240:
URL: https://github.com/apache/incubator-brpc/issues/1240#issuecomment-690848806


   > 看你描述,不会和brpc有关系,main函数开始的时候,brpc框架本身还没有初始化完成,不会形成竞争。
   > 
   > 记录下 std::locale 函数运行了多少us看看?
   > 是用的brpc自带的cpu profile功能吗,流量开始进入的时候,这时候global函数不都运行完了么?
   
   是gperftools的cpu工具,brpc自带的有个尴尬的问题,就是用了这个locale global后,brpc的调试网页返回会是invalid 
http response。。最后那个问题我也很奇怪,只有开头调用了一次,但是从采样图上看确实一直在这个内部竞争


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to