-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
发送http响应时间耗时过长 #1064
Comments
可能服务瞬间并发度比较高,看看此时的监控是否有一些突增 |
具体如何排查和避免这种情况?比如查看具体时间消耗在框架的哪里? |
@jamesge 偶现bthread_worker_usage是bthread_worker_count的2至3倍,一旦出现,就会一直持续,此时服务出现卡顿,api响应很慢,将此服务节点lvs负载关闭,bthread_worker_usage即恢复正常,维持在1左右,再次打开负载,又出现bthread_worker_usage是bthread_worker_count的2至3倍,此时抓取堆栈,如下: |
是不是打开了-http_verbose? 否则thread 20中不会出现PrintMessage。这个开关是用于debug的,不应该在线上系统中打开 |
@jamesge 是打开了http_verbose,发现服务卡顿,临时打开看trace的 |
请问这个问题最终有解决的办法了吗 |
We close this issue because it is irreproducible and inactive for a long time. |
statusvarsconnectionsflagsrpczcpuheapgrowthcontentionmore?
2020/01/13-17:21:50.756843 Received request(368) from 127.0.0.1:33223 http log_id=0 trace=dd6968a2cb63197a span=3fee23e0a136197a
17:21:50.756940 . 97 Processing the request in a new bthread
17:21:50.756950 . 10 Enter HttpService.EntryDoc2_Get
17:21:50.756969 . 19 [ncEACHttpServerUtil.cpp:54] ip: 172.16.251.4
17:21:50.757498 . 6 [ncEACEntryDoc2Handler.cpp:102] this: 0x10df630, cntl: 0x7fea8c216db0, userId: b3c51f50-394f-11e7-b7c9-1866daf2fda0 begin
17:21:50.757513 . 15 [ncEACHttpServerUtil.cpp:54] ip: 172.16.251.4
17:21:50.757517 . 4 [ncACSDocManager.cpp:1549] [BEGIN]this: 0x10dfa10
17:21:50.757522 . 5 [ncACSPermManager.cpp:673] this: 0x10dfaf0, userId: b3c51f50-394f-11e7-b7c9-1866daf2fda0, gnsPath: gns:// begin
17:21:50.757529 . 7 [ncACSShareMgnt.cpp:159] [BEGIN]this: 0x10d5450
17:21:50.757535 . 6 [ncACSShareMgnt.cpp:110] [BEGIN]this: 0x10d5450
17:21:50.758062 . 527 [ncACSShareMgnt.cpp:129] [END]this: 0x10d5450
17:21:50.759630 . 1568 [ncACSShareMgnt.cpp:191] [END]this: 0x10d5450
17:21:50.759647 . 17 [ncACSShareMgnt.cpp:429] [BEGIN]this: 0x10d5450
17:21:50.759983 . 336 [ncACSShareMgnt.cpp:446] [END]this: 0x10d5450
17:21:50.759991 . 8 [ncDBPermManager.cpp:1041] docId: -1945481168, accessToken size: 5 begin
17:21:50.773208 . 13217 [ncDBPermManager.cpp:1094] docId: gns://, accessToken size: 5 end, ret perms size: 396
17:21:50.773468 . 260 [ncDBOwnerManager.cpp:340] [BEGIN]this: 0x10b9540, userId: b3c51f50-394f-11e7-b7c9-1866daf2fda0
17:21:50.774407 . 939 [ncDBOwnerManager.cpp:362] [END]this: 0x10b9540, userId: b3c51f50-394f-11e7-b7c9-1866daf2fda0, ret subObjs size: 1
17:21:50.774452 . 45 [ncACSConfManager.cpp:380] this: 0x10e10e0 begin
17:21:50.774456 . 4 [ncACSConfManager.cpp:385] this: 0x10e10e0 end
17:21:50.774460 . 4 [ncACSShareMgnt.cpp:3354] this: 0x10d5450
17:21:50.775530 . 1070 [ncDBDocManager.cpp:1123] this: 0x10bac10, types size: 0 begin
17:21:50.777138 . 1608 [ncDBDocManager.cpp:1212] this: 0x10bac10, types size: 0 end, ret infos size: 26
17:21:50.777169 . 31 [ncACSPermManager.cpp:884] this: 0x10dfaf0, userId: b3c51f50-394f-11e7-b7c9-1866daf2fda0, size: 26 begin
17:21:50.777174 . 5 [ncACSShareMgnt.cpp:2733] [BEGIN]this: 0x10d5450
17:21:50.777570 . 396 [ncACSShareMgnt.cpp:2749] [END]this: 0x10d5450
17:21:50.777633 . 63 [ncACSProcessorUtil.cpp:345] [BEGIN]this: 0x10de420
17:21:50.780448 . 1271 [ncACSShareMgnt.cpp:886] [BEGIN]this: 0x10d5450
17:21:50.781456 . 1008 [ncACSShareMgnt.cpp:916] [END]this: 0x10d5450
17:21:50.782712 . 22 [ncACSProcessorUtil.cpp:475] [END]this: 0x10de420
17:21:50.782884 . 2 [ncACSDocManager.cpp:1592] [END]this: 0x10dfa10
17:21:50.783507 . 623 [ncEACEntryDoc2Handler.cpp:158] this: 0x10df630, cntl: 0x7fea8c216db0, userId: b3c51f50-394f-11e7-b7c9-1866daf2fda0 end
17:21:50.783593 . 86 Leave HttpService.EntryDoc2_Get
17:21:55.225824 4.442231 Responded(10961)
服务偶现响应慢,打开trace,最后两行显示耗时4s多,倒数第三行已是请求handler函数的最后一行,那么剩下的耗时是否消耗在brpc内部了,很疑惑,望解答!
The text was updated successfully, but these errors were encountered: