You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by "JedrekWang (via GitHub)" <gi...@apache.org> on 2023/12/11 13:32:05 UTC

[I] cse_slow_request日志记录的耗时不准确 [servicecomb-java-chassis]

JedrekWang opened a new issue, #4129:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4129

   #### 背景:
   cse_slow_request日志记录的thradPoolQueue阶段耗时统计不正确
   ![EE66B755-595D-41C7-AF9C-DDA18CAF1276](https://github.com/apache/servicecomb-java-chassis/assets/28520968/33217297-f78f-4127-b560-000fa88b213d)
   #### 问题原因:
   当请求堆积在请求队列中时,超过时间上限后请求失败,未刷新startSchedule参数,导致threadPoolQueue计算耗时为0,相关方法为
   calcThreadPoolQueueTime()
   
   #### 问题复现:
   将配置项servicecomb.executor.default.coreThreads-per-group和servicecomb.executor.default.maxThreads-per-group设为1
   构造接口耗时30s,连续下发3次,查看slow_request即可
   
   


-- 
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: commits-unsubscribe@servicecomb.apache.org.apache.org

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


Re: [I] cse_slow_request日志记录的耗时不准确 [servicecomb-java-chassis]

Posted by "liubao68 (via GitHub)" <gi...@apache.org>.
liubao68 commented on issue #4129:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4129#issuecomment-1869986769

   Tested in 3.0.0
   
   ```text
   2023-12-27 14:14:06,782 [group0-1-thread-1] Slow Provider invocation [PROVIDER rest provider.ProviderController.sayHello](50 ms)[658bc0895cb51180]
     http method       :                 POST
     url               :           /benchmark
     endpoint          :  10.37.113.232:29893
     status code       :                  408
       total           : 30089.889ms
       prepare         :    0.215ms
       provider-decode :    0.228ms
       queue           : 30088.654ms
       execute         :      0.0ms
       provider-encode :    0.118ms
       provider-send   :     0.43ms
       F(-01880)-provider-bulkhead: 30088.700ms
       F(-01890)-provider-circuit-breaker: 30088.710ms
       F(-01900)-rate-limiting: 30088.723ms
       F(-01995)-context-mapper: 30088.735ms
       F(-02000)-rest-server-codec: 30089.598ms
       F(000000)-schedule: 30088.688ms
   ```
   


-- 
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: commits-unsubscribe@servicecomb.apache.org

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


Re: [I] cse_slow_request日志记录的耗时不准确 [servicecomb-java-chassis]

Posted by "liubao68 (via GitHub)" <gi...@apache.org>.
liubao68 closed issue #4129: cse_slow_request日志记录的耗时不准确
URL: https://github.com/apache/servicecomb-java-chassis/issues/4129


-- 
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: commits-unsubscribe@servicecomb.apache.org

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