简体   繁体   English

Mule崩溃导致连接超时

[英]Mule Crashes Timeout for connection

I'm having trouble in mule service. 我在m子服务方面遇到麻烦。 Daily, the service crashes, about 4 times a day, making it necessary to redeploy my service. 每天,该服务每天崩溃约4次,因此有必要重新部署我的服务。

Here's my stack trace. 这是我的堆栈跟踪。

ERROR 2016-02-04 10:30:38,063 [[app_service].NoSessionConnector.receiver.03] org.mule.exception.DefaultMessagingExceptionStrategy:

********************************************************************************
Message               : Timeout for connection (java.net.SocketException). Message payload is of type: HttpResponse
Code                  : MULE_ERROR--2
--------------------------------------------------------------------------------
Exception stack is:
1. Timeout for connection (java.net.SocketException)
  java.net.SocketOutputStream:-2 (null)
2. Timeout for connection (java.net.SocketException). Message payload is of type: HttpResponse (org.mule.execution.ResponseDispatchExcepti
on)
  org.mule.transport.http.HttpMessageProcessTemplate:141 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/execution/ResponseDispatc
hException.html)
--------------------------------------------------------------------------------
Root Exception stack trace:
java.net.SocketException: Tempo esgotado para conexão
        at java.net.SocketOutputStream.socketWrite0(Native Method)
        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:113)
        at java.net.SocketOutputStream.write(SocketOutputStream.java:159)
    + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything)
********************************************************************************

I've tried changing the number of threads in maxThreadsActive and maxBufferSize, but is still occurring the same error 我尝试更改maxThreadsActive和maxBufferSize中的线程数,但是仍然出现相同的错误

Seems like the tcp connection has not been usable for a long time. 好像tcp连接已经很长时间没有使用了。

Use the the Socket.setKeepAlive() or apply the heart beat mechanism . 使用Socket.setKeepAlive()或应用心跳机制

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM