在 wso2 esb 中读取请求后的连接超时 [英] connection timeout after request is read in wso2 esb

查看:38
本文介绍了在 wso2 esb 中读取请求后的连接超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在端点的连续时间之后,我们在读取请求后得到消息连接超时,并且 esb 将停止响应.我们需要再次重新启动 wso2 服务.我按照建议增加了套接字超时.

After continuous time of the endpoint we are getting the message connection timeout after request is read and esb will stop responding. we need to restart the wso2 services again. i had increase the socket time out as suggested.

推荐答案

超时在 esb 中定义为三个级别.端点超时<套接字超时<突触超时.检查[1]

Time out in the esb is defined in three levels. endpoint timeout < socket timeout < synapse timeout.check[1]

如果您为端点定义了端点超时,您可以将其增加到套接字超时的超时值.并且您可以将套接字超时增加到突触超时的值.默认突触超时为 2 分钟.因此,即使您将端点超时和套接字超时增加到 2 分钟,并且您的后端服务也没有得到任何响应,那么您应该检查您的后端服务.

If you have defined enpoint timeout for your endpoint you can increase it up to the timeout value of socket timeout. and you can in crease the socket time out to the vlaue of synapse timeout. default synapse timeout is 2 minutes.So even you increase the endpoint timeout and socket time out to 2 minutes and you dont get any response form your backend service,Then you should check your backend service.

一旦发生超时,该端点将被暂停到 30000 毫秒.因此,在暂停期内对该端点的任何请求都将被 esb 忽略.您可以禁用此处提到的暂停期 [2]

once timeout occurred that enpoint will be suspended to 30000ms .So any request to that endpoint within the suspension period will be ignored by esb. you can disable the suspension period as mention here [2]

在 esb 中启用了默认的 keepalive 属性.但是有些防火墙会忽略来自 esb 的保持活动数据包.所以 esb 和防火墙之间会有实际连接.但是从防火墙到后端的连接可能会关闭.在这种情况下,禁用keepalive 属性将为每个请求创建新连接[3],后端将给出响应.

Default keepalive property is enabled in the esb .But some firewalls will ignore keep alive packets form esb .So there will be a actual connection between esb and firewall .But connection form firewall to backend might be closed.In that case disabling the keepalive property will create new connection for each request[3] and backend will give the response.

1.http://soatutorials.blogspot.in/2014/11/how-to-configure-timeouts-in-wso2-esb.html2.http://miyurudw.blogspot.com/2012/02/disable-suspension-of-wso2-esb-synapse.html3.https://udaraliyanage.wordpress.com/2014/06/17/wso2-esb-keep-alive-property/

这篇关于在 wso2 esb 中读取请求后的连接超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆