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 2020/11/11 02:58:53 UTC

[GitHub] [servicecomb-java-chassis] solitudeycq opened a new issue #2046: 微服务调用偶现490问题探究

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


   服务A调用服务B的微服务接口偶现490,服务A已开启metrics日志,在日志中有如下数据:
   ![image](https://user-images.githubusercontent.com/8385941/98759761-bb914780-240c-11eb-8a98-e437e133f2bf.png)
   可以看到detail里边的信息都是0,请问这种情况可能是什么问题?是请求没有发出去吗?


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [servicecomb-java-chassis] solitudeycq commented on issue #2046: 微服务调用偶现490问题探究

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


   CSE的版本是1.2.0.B007r7。微服务B无访问日志,微服务A的报错日志如下:
   ![image](https://user-images.githubusercontent.com/8385941/98768769-d2d73180-241a-11eb-827a-9fc57bad2cd1.png)
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #2046: 微服务调用偶现490问题探究

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


   provider / consumer 都有配置 idleTimeoutInSeconds , 默认值分别为 60s 和 30s 。 建议不要修改这个值,超时时间设置也不要大于 30s, 除非实在没解决办法了。 
   
   配置参考:
   
   https://docs.servicecomb.io/java-chassis/zh_CN/config-reference/rest-transport-client/


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [servicecomb-java-chassis] liubao68 edited a comment on issue #2046: 微服务调用偶现490问题探究

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


   查看日志, 490 的时候, 日志里面有显示什么具体异常信息吗? 不同的异常信息, 原因可能不同。 另外需要看下你用的版本,记得早期版本在超时/重试的情况下, 统计的时间有误。不过时间有点久了, 我从历史记录找不到哪个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.

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



[GitHub] [servicecomb-java-chassis] solitudeycq edited a comment on issue #2046: 微服务调用偶现490问题探究

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


   微服务B无访问日志,微服务A的报错日志如下:
   ![image](https://user-images.githubusercontent.com/8385941/98768769-d2d73180-241a-11eb-827a-9fc57bad2cd1.png)
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #2046: 微服务调用偶现490问题探究

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


   超时问题不好定位,需要多观察下,看看问题发生的场景和频率。 


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #2046: 微服务调用偶现490问题探究

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


   查看日志, 490 的时候, 日志里面有显示什么具体异常信息吗? 不同的异常信息, 原因可能不同。 另外需要看下你用的版本,记得早期版本在超时/重试的情况下, 统计的时间有误。不过和历史记录找不到哪个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.

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



[GitHub] [servicecomb-java-chassis] solitudeycq commented on issue #2046: 微服务调用偶现490问题探究

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


   @liubao68 


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #2046: 微服务调用偶现490问题探究

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


   日志显示是调用超时。 超时的情况metrics可能显示有误。 
   
   超时的原因,需要继续结合 provider 的情况分析,比如负载是不是高,超过系统处理能力、网络是否故障等。 
   
   BTW: 提交 issue 请勿截图。 参考 [说明](https://github.com/apache/servicecomb-java-chassis/wiki)


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [servicecomb-java-chassis] liubao68 edited a comment on issue #2046: 微服务调用偶现490问题探究

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


   日志显示是调用超时。 超时的情况metrics可能显示有误。 这个需要升级到 2.1.x 版本才能够解决。 
   
   超时的原因,需要继续结合 provider 的情况分析,比如负载是不是高,超过系统处理能力、网络是否故障等。 
   
   BTW: 提交 issue 请勿截图。 参考 [说明](https://github.com/apache/servicecomb-java-chassis/wiki)


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [servicecomb-java-chassis] solitudeycq edited a comment on issue #2046: 微服务调用偶现490问题探究

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


   版本是2.3.70.4。微服务B无访问日志,微服务A的报错日志如下:
   ![image](https://user-images.githubusercontent.com/8385941/98768769-d2d73180-241a-11eb-827a-9fc57bad2cd1.png)
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [servicecomb-java-chassis] solitudeycq commented on issue #2046: 微服务调用偶现490问题探究

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


   感谢回复,issue问题后需注意。目前来看,490发生时provider一切正常。


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [servicecomb-java-chassis] solitudeycq commented on issue #2046: 微服务调用偶现490问题探究

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


   好的,我看能不能升级下metrics,拿到490时的准确数据。另外请教个问题,idleTimeoutInSeconds,这个参数是不是需要consumer和provider都设置?


----------------------------------------------------------------
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:
users@infra.apache.org