You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2021/07/31 06:38:47 UTC

[GitHub] [servicecomb-java-chassis] five111 opened a new issue #2491: 性能问题咨询

five111 opened a new issue #2491:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2491


   客户端低频但必现Connection was closed 几个小时会报错一个报错
   增加了metirc日志后 搜集到信息如下
   第一类
   **
   [simpleConsumerThread-0]2021-07-30 22:12:51.344 [WARN ] | slow(1 ms) invocation, CONSUMER rest ude.udeS*****#*#*****er.launchTasks:[N]  http method: POST[N]  
   url        : /scheduler/launchtasks/[N]  
   server     : rest://172.18.1.135:5559?sslEnabled=true&urlPrefix=%2Fbfs%2Frest[N]  
   status code: 490[N]  
   total      : 1648.425 ms[N]   
   prepare   : 0.25 ms[N]    
   handlers request       : 0.307 ms[N]    
   client filters request : 0.133 ms[N]    
   send request           : 1629.543 ms[N]    
   get connection         : 1629.205 ms[N]    
   write to buf           : 0.338 ms[N]    
   wait response          : 2.967 ms[N]    
   wake consumer          : 0.1 ms[N]    
   client filters response: 0.0 ms[N]    
   handlers response      : 15.445 ms | org.apache.servicecomb.metrics.core.publish.SlowInvocationLogger.warn(TraceIdLogger.java:56)
   **
   
   没有改过超时时间,时间类配置都是默认配置 1.6s就超时了 ,对应的服务端没有任何日志
   
   第二类
   **
   runlog.20210730213035.1.log.gz:[simpleConsumerThread-0]2021-07-30 20:55:34.585 [WARN ] | 
   slow(1 ms) invocation, CONSUMER rest databusmanager.TaskManagerController.launchTasks:[N]  
   http method: POST[N]  url        : /rest/v1/scheduler/launchTasks/[N]  server     : rest://172.18.0.152:8087?sslEnabled=true&urlPrefix=%2Fdatabus%2Frest%2Fcse[N]  
   status code: 408[N]  
   total      : 30003.297 ms[N]    
   prepare                : 0.7 ms[N]    
   handlers request       : 0.141 ms[N]    
   client filters request : 0.106 ms[N]    
   send request           : 0.0 ms[N]    
   get connection         : 0.0 ms[N]    
   write to buf           : 0.0 ms[N]    
   wait response          : 0.0 ms[N]    
   wake consumer          : 0.0 ms[N]    
   client filters response: 0.0 ms[N]    
   handlers response      : 0.0 ms | org.apache.servicecomb.metrics.core.publish.SlowInvocationLogger.warn(TraceIdLogger.java:56)
   runlog.20210731024455.1.log.gz:[simpleConsumerThread-0]2021-07-31 02:15:32.511 [WARN ] | 
   slow(1 ms) invocation, CONSUMER rest databusmanager.TaskManagerController.launchTasks:[N]  
   http method: POST[N]  url        : /rest/v1/scheduler/launchTasks/[N]  server     : rest://172.18.0.152:8087?sslEnabled=true&urlPrefix=%2Fdatabus%2Frest%2Fcse[N]  
   status code: 408[N]  
   total      : 30002.336 ms[N]    
   prepare                : 0.4 ms[N]    
   handlers request       : 0.85 ms[N]    
   client filters request : 0.61 ms[N]    
   send request           : 0.0 ms[N]    
   get connection         : 0.0 ms[N]    
   write to buf           : 0.0 ms[N]    
   wait response          : 0.0 ms[N]    
   wake consumer          : 0.0 ms[N]    
   client filters response: 0.0 ms[N]    
   handlers response      : 0.0 ms | org.apache.servicecomb.metrics.core.publish.SlowInvocationLogger.warn(TraceIdLogger.java:56)
   runlog.20210731092506.1.log.gz:[simpleConsumerThread-0]2021-07-31 08:30:33.741 [WARN ] | 
   slow(1 ms) invocation, CONSUMER rest databusmanager.TaskManagerController.launchTasks:[N]  
   http method: POST[N]  url        : /rest/v1/scheduler/launchTasks/[N]  server     : rest://172.18.0.200:8087?sslEnabled=true&urlPrefix=%2Fdatabus%2Frest%2Fcse[N]  
   status code: 408[N]  
   total      : 30001.925 ms[N]    
   prepare                : 0.7 ms[N]    
   handlers request       : 0.115 ms[N]    
   client filters request : 0.108 ms[N]    
   send request           : 0.0 ms[N]    
   get connection         : 0.0 ms[N]    
   write to buf           : 0.0 ms[N]    
   wait response          : 0.0 ms[N]    
   wake consumer          : 0.0 ms[N]    
   client filters response: 0.0 ms[N]    
   handlers response      : 0.0 ms | org.apache.servicecomb.metrics.core.publish.SlowInvocationLogger.warn(TraceIdLogger.java:56)
   **
   的确是30s时间超时 但是一致的在send request 就没有了时间统计 ,对端也是没有日志的
   
   麻烦帮忙分析下可能性,感谢
   java-chassis版本2.1.5
   
   


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



[GitHub] [servicecomb-java-chassis] five111 closed issue #2491: 性能问题咨询

Posted by GitBox <gi...@apache.org>.
five111 closed issue #2491:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2491


   


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



[GitHub] [servicecomb-java-chassis] five111 commented on issue #2491: 性能问题咨询

Posted by GitBox <gi...@apache.org>.
five111 commented on issue #2491:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2491#issuecomment-891454844


   > 第一类:这个是一个警告,当一个请求处理时间超过1秒的时候(默认值),就会输出。
   
   这个不是个警告,这次请求是失败的 
   
   


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



[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #2491: 性能问题咨询

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #2491:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2491#issuecomment-890653606


   第一类:这个是一个警告,当一个请求处理时间超过1秒的时候(默认值),就会输出。 
   第二类:这个是超时的情况下, 对于 send request/get connection的时间统计问题, 记得有修复过类似问题。 
   
   从提供的信息看, 直接的原因可能是获取连接慢。 详细原因,可能还得结合线程池统计、连接池统计信息等综合分析。 


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



[GitHub] [servicecomb-java-chassis] five111 commented on issue #2491: 性能问题咨询

Posted by GitBox <gi...@apache.org>.
five111 commented on issue #2491:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2491#issuecomment-891489782


   > 第二类:这个是超时的情况下, 对于 send request/get connection的时间统计问题, 记得有修复过类似问题。
   
   这个是哪个版本合入的?方便贴下pr吗
   
   


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



[GitHub] [servicecomb-java-chassis] five111 edited a comment on issue #2491: 性能问题咨询

Posted by GitBox <gi...@apache.org>.
five111 edited a comment on issue #2491:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2491#issuecomment-890301555


   https://github.com/apache/servicecomb-java-chassis/issues/1971 这个issue的描述似乎和我们相似


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



[GitHub] [servicecomb-java-chassis] five111 commented on issue #2491: 性能问题咨询

Posted by GitBox <gi...@apache.org>.
five111 commented on issue #2491:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2491#issuecomment-890301555


   https://github.com/apache/servicecomb-java-chassis/issues/1971 这个issue的描似乎和我们相似


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