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/01/14 02:53:32 UTC

[GitHub] [servicecomb-java-chassis] jiangqiushi opened a new issue #1533: Failed to send request, local:not connected

jiangqiushi opened a new issue #1533: Failed to send request, local:not connected
URL: https://github.com/apache/servicecomb-java-chassis/issues/1533
 
 
   hello,咨询个服务调用超时的问题,生产环境偶现服务调用超时,java-chassis版本号:1.2.0.B006
   客户端配置:
   rest:
       client:
         thread-count: 32
         connection:
           maxPoolSize: 20
           idleTimeoutInSeconds: 10
           keepAlive: true
         http2:
           maxPoolSize: 20
           idleTimeoutInSeconds: 10
     request:
       timeout: 5000
   
   服务端配置:
   rest:
       address: 0.0.0.0:18083?sslEnabled=false&protocol=http2
       server:
         thread-count: 32
         connection:
           idleTimeoutInSeconds: 60
   
   错误日志:
   2020-01-13 17:56:19.583 | ERROR | [vert.x-eventloop-thread-6] | [RestClientInvocation] | Failed to send request, local:not connected, remote:/10.33.106.89:18083.
   io.vertx.core.http.impl.HttpClientRequestBase$1: The timeout period of 5000ms has been exceeded while executing POST /v1/asr/audio/upload/async?null for host 10.33.106.89
   2020-01-13 17:56:19.583 | ERROR | [vert.x-eventloop-thread-6] | [LoadbalanceHandler] | service CONSUMER rest asr_service_89.asrservice.asyncUploadAsrData, call error, msg is cause:InvocationException,message:InvocationException: code=490;msg=CommonExceptionData [message=Cse Internal Bad Request];cause:,message:The timeout period of 5000ms has been exceeded while executing POST /v1/asr/audio/upload/async?null for host 10.33.106.89, server is rest://10.33.106.89:18083?sslEnabled=false&protocol=http2
   2020-01-13 17:56:19.583 | ERROR | [vert.x-eventloop-thread-6] | [LoadbalanceHandler] | Invoke server failed. Operation CONSUMER rest asr_service_89.asrservice.asyncUploadAsrData; server rest://10.33.106.89:18083?sslEnabled=false&protocol=http2; 0-0 msg cause:InvocationException,message:InvocationException: code=490;msg=CommonExceptionData [message=Cse Internal Bad Request];cause:,message:The timeout period of 5000ms has been exceeded while executing POST /v1/asr/audio/upload/async?null for host 10.33.106.89
   2020-01-13 17:56:19.583 | ERROR | [vert.x-eventloop-thread-6] | [LoadbalanceHandler] | Invoke all server failed. Operation CONSUMER rest asr_service_89.asrservice.asyncUploadAsrData, e=cause:InvocationException,message:InvocationException: code=490;msg=CommonExceptionData [message=Cse Internal Bad Request];cause:,message:The timeout period of 5000ms has been exceeded while executing POST /v1/asr/audio/upload/async?null for host 10.33.106.89
   2020-01-13 17:56:19.584 | WARN  | [gw_worker_14] | [BizkeeperCommand] | bizkeeper command CONSUMER rest asr_service_89.asrservice.asyncUploadAsrData failed due to InvocationException: code=490;msg=CommonExceptionData [message=Cse Internal Bad Request]
   2020-01-13 17:56:19.584 | WARN  | [gw_worker_14] | [BizkeeperHandler] | bizkeeper execution error, info=cause:InvocationException,message:InvocationException: code=490;msg=CommonExceptionData [message=Cse Internal Bad Request];cause:,message:The timeout period of 5000ms has been exceeded while executing POST /v1/asr/audio/upload/async?null for host 10.33.106.89
   2020-01-13 17:56:19.584 | WARN  | [gw_worker_14] | [BizkeeperHandler] | catch error in bizkeeper:Consumer.asr_service_89.asrservice.asyncUploadAsrData failed and fallback disabled.
   
   
   local:not connected是不是代表客户端和服务端的连接没有建立?但是我没看到任何连接异常的日志。
   
   另外,有没有什么办法知道这次请求是阻塞在客户端?还是阻塞在服务端的队列?

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


With regards,
Apache Git Services

[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #1533: Failed to send request, local:not connected

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #1533: Failed to send request, local:not connected
URL: https://github.com/apache/servicecomb-java-chassis/issues/1533#issuecomment-574449674
 
 
   这种情况就比较复杂了。 通常可能是性能问题,可以观察下服务端和客户端负载,比如CPU、内存、连接数等。 可以试试打开[metrics](https://docs.servicecomb.io/java-chassis/zh_CN/general-development/metrics.html),并将统计数据输出到独立文件,能够帮助识别一些问题。 

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


With regards,
Apache Git Services

[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #1533: Failed to send request, local:not connected

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #1533: Failed to send request, local:not connected
URL: https://github.com/apache/servicecomb-java-chassis/issues/1533#issuecomment-574022192
 
 
   或许你可以先使用浏览器测试一下连接: http://host:port
   或者使用wget等命令工具: wget http://host:port

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


With regards,
Apache Git Services

[GitHub] [servicecomb-java-chassis] jiangqiushi commented on issue #1533: Failed to send request, local:not connected

Posted by GitBox <gi...@apache.org>.
jiangqiushi commented on issue #1533: Failed to send request, local:not connected
URL: https://github.com/apache/servicecomb-java-chassis/issues/1533#issuecomment-574037866
 
 
   > 或许你可以先使用浏览器测试一下连接: http://host:port
   > 或者使用wget等命令工具: wget http://host:port
   
   1.偶现,业务99%的时间是正常的。
   2.服务端好像确实没有收到请求,因为服务端的acess log停了10秒。

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


With regards,
Apache Git Services