yyweii opened a new issue, #2552:
URL: https://github.com/apache/brpc/issues/2552

   **Describe the bug (描述bug)**
   
adx服务在启动的时候大概率会出现卡死。vars接口显示创建了大量bthread和channel_connections,并且不断增长,最后导致OOM。如果能成功启动,服务运行还是比较稳定,高峰时bthread最多1800个,channel_connections最多2500个。
   
   
brpc服务接收到请求后会广播给下游dsp。协议基本都是http。我们对每一个dsp请求都会启一个bthread,bthread里同步请求下游服务,设定的超时时间为500ms左右。处理服务请求的bthread会join每个dsp的bthread。
   
   服务最高并发不到100。dsp120个左右。
   
   gdb调试的时候,worker线程堆栈目前看到有两种:
   
   1. worker都在发送dsp请求,暂停在dsp的CallMethod。看堆栈貌似把pthread卡住了
   
![image](https://github.com/apache/brpc/assets/598529/239c9e1b-407c-4315-b13d-8ebc7771c7b1)
   
   2. worker都在建立ssl链接
   
![image](https://github.com/apache/brpc/assets/598529/d62949a9-b234-45d1-a53a-293e57146d2e)
   
   
   有没有排查思路?
   
   **To Reproduce (复现方法)**
   
   
   **Expected behavior (期望行为)**
   
   
   **Versions (各种版本)**
   OS: ubuntu 22.04.3
   Compiler: g++ 11.4
   brpc: 1.6
   protobuf: 3.20.1
   
   **Additional context/screenshots (更多上下文/截图)**
   
   


-- 
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.

To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org.apache.org

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