steel2013 commented on issue #1064: URL: https://github.com/apache/incubator-brpc/issues/1064#issuecomment-618229774
@jamesge 偶现bthread_worker_usage是bthread_worker_count的2~3倍,一旦出现,就会一直持续,此时服务出现卡顿,api响应很慢,将此服务节点lvs负载关闭,bthread_worker_usage即恢复正常,维持在1左右,再次打开负载,又出现bthread_worker_usage是bthread_worker_count的2~3倍,此时抓取堆栈,如下: Thread 16 (Thread 0x7fe05b9f9700 (LWP 27903)): #0 0x00007fe09056dba9 in syscall () from /lib64/libc.so.6 #1 0x00007fe091ebaa3e in bthread::TaskGroup::wait_task(unsigned long*) () from ./libbrpc.so #2 0x00007fe091ebcb3b in bthread::TaskGroup::run_main_task() () from ./libbrpc.so #3 0x00007fe091eb87ee in bthread::TaskControl::worker_thread(void*) () from ./libbrpc.so #4 0x00007fe090260e65 in start_thread () from /lib64/libpthread.so.0 #5 0x00007fe09057388d in clone () from /lib64/libc.so.6 出现大量上述堆栈信息 重启服务后,打开负载,即可恢复正常。 ---------------------------------------------------------------- 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: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
