wso2 esb连接超时调整

wso2 esb连接超时调整,wso2,wso2esb,wso2carbon,Wso2,Wso2esb,Wso2carbon,配置: WSO2ESB 4.8.0\4.8.1 OS:Linux\FreeBSD CLIENT <-> ESB <-> BACKEND repository/conf/nhttp.properties http.socket.timeout=600000 synapse.sal.endpoints.sesssion.timeout.default=600000 synapse.global_timeout_interval=600000 #In memory sta

配置: WSO2ESB 4.8.0\4.8.1 OS:Linux\FreeBSD

CLIENT <-> ESB <-> BACKEND
repository/conf/nhttp.properties

http.socket.timeout=600000
synapse.sal.endpoints.sesssion.timeout.default=600000
synapse.global_timeout_interval=600000

#In memory statistics cleaning state 
statistics.clean.enable=false

# Dependency tracking Synapse observer
# Comment out to disable dependency management
synapse.observers=org.wso2.carbon.mediation.dependency.mgt.DependencyTracker

# Uncomment following to support fallback XPATH 2.0 support with DOM and Saxon
#synapse.xpath.dom.failover.enabled=true
synapse.temp_data.chunk.size=3072

# A configuration to add tenant information to the out thread local carbon context
synapse.carbon.ext.tenant.info=org.wso2.carbon.mediation.initializer.handler.CarbonTenantInfoConfigurator

#external component registration for secure vault xpath function lookup
synapse.xpath.func.extensions=org.wso2.carbon.mediation.security.vault.xpath.SecureVaultLookupXPathFunctionProvider
## Pass-through HTTP transport specific tuning parameters
worker_pool_size_core=400
worker_pool_size_max=500
worker_thread_keepalive_sec=600
#worker_pool_queue_length=-1
#io_threads_per_reactor=2
io_buffer_size=16384
#http.max.connection.per.host.port=32767
http.socket.timeout=600000

# This property is crucial for automated tests
http.socket.reuseaddr=true

## Other parameters
#http.user.agent.preserve=false
#http.server.preserve=true
#http.connection.disable.keepalive=false
rest.dispatcher.service=__MultitenantDispatcherService
# URI configurations that determine if it requires custom rest dispatcher
rest_uri_api_regex=\\w+://.+:\\d+/t/.*|\\w+://.+\\w+/t/.*|^(/t/).*
rest_uri_proxy_regex=\\w+://.+:\\d+/services/t/.*|\\w+://.+\\w+/services/t/.*|^(/services/t/).*
repository/conf/axis2/axis2.xml

<transportReceiver name="http" class="org.apache.synapse.transport.nhttp.HttpCoreNIOListener">
      (...)
        <parameter name="SO_TIMEOUT" locked="false">120000</parameter>
        <parameter name="CONNECTION_TIMEOUT" locked="false">120000</parameter>
      (...)
    </transportReceiver>


    <transportReceiver name="https" class="org.apache.synapse.transport.nhttp.HttpCoreNIOSSLListener">
       (...)
        <parameter name="SO_TIMEOUT" locked="false">120000</parameter>
        <parameter name="CONNECTION_TIMEOUT" locked="false">120000</parameter>
        (...)
     </transportReceiver>


<transportSender name="http" class="org.apache.synapse.transport.nhttp.HttpCoreNIOSender">
        (...)
        <parameter name="SO_TIMEOUT" locked="false">120000</parameter>
        <parameter name="CONNECTION_TIMEOUT" locked="false">120000</parameter>

    </transportSender>
    <transportSender name="https" class="org.apache.synapse.transport.nhttp.HttpCoreNIOSSLSender">
            (...)
            <parameter name="SO_TIMEOUT" locked="false">120000</parameter>
            <parameter name="CONNECTION_TIMEOUT" locked="false">120000</parameter>
</transportSender>
repository/conf/passthru-http.properties

http.socket.timeout=600000
synapse.sal.endpoints.sesssion.timeout.default=600000
synapse.global_timeout_interval=600000

#In memory statistics cleaning state 
statistics.clean.enable=false

# Dependency tracking Synapse observer
# Comment out to disable dependency management
synapse.observers=org.wso2.carbon.mediation.dependency.mgt.DependencyTracker

# Uncomment following to support fallback XPATH 2.0 support with DOM and Saxon
#synapse.xpath.dom.failover.enabled=true
synapse.temp_data.chunk.size=3072

# A configuration to add tenant information to the out thread local carbon context
synapse.carbon.ext.tenant.info=org.wso2.carbon.mediation.initializer.handler.CarbonTenantInfoConfigurator

#external component registration for secure vault xpath function lookup
synapse.xpath.func.extensions=org.wso2.carbon.mediation.security.vault.xpath.SecureVaultLookupXPathFunctionProvider
## Pass-through HTTP transport specific tuning parameters
worker_pool_size_core=400
worker_pool_size_max=500
worker_thread_keepalive_sec=600
#worker_pool_queue_length=-1
#io_threads_per_reactor=2
io_buffer_size=16384
#http.max.connection.per.host.port=32767
http.socket.timeout=600000

# This property is crucial for automated tests
http.socket.reuseaddr=true

## Other parameters
#http.user.agent.preserve=false
#http.server.preserve=true
#http.connection.disable.keepalive=false
rest.dispatcher.service=__MultitenantDispatcherService
# URI configurations that determine if it requires custom rest dispatcher
rest_uri_api_regex=\\w+://.+:\\d+/t/.*|\\w+://.+\\w+/t/.*|^(/t/).*
rest_uri_proxy_regex=\\w+://.+:\\d+/services/t/.*|\\w+://.+\\w+/services/t/.*|^(/services/t/).*
没有运气。
测试后端URL:(70秒超时硬编码)

在nhttp.properties中增加http.socket.Timeout将没有帮助,因为默认情况下ESB-4.8.X使用passthru传输。请将http.socket.timeout=600000添加到ESB_HOME/repository/conf/passthru-http.properties文件并重新启动服务器

谢谢!
Charitha

在nhttp.properties中增加http.socket.timeout不会有帮助,因为ESB-4.8.X默认使用passthru传输。请将http.socket.timeout=600000添加到ESB_HOME/repository/conf/passthru-http.properties文件并重新启动服务器

谢谢!
Charitha

在nhttp.properties中增加http.socket.timeout不会有帮助,因为ESB-4.8.X默认使用passthru传输。请将http.socket.timeout=600000添加到ESB_HOME/repository/conf/passthru-http.properties文件并重新启动服务器

谢谢!
Charitha

在nhttp.properties中增加http.socket.timeout不会有帮助,因为ESB-4.8.X默认使用passthru传输。请将http.socket.timeout=600000添加到ESB_HOME/repository/conf/passthru-http.properties文件并重新启动服务器

谢谢!
Charitha

直通代理使用具有默认配置的匿名端点,您应该尝试添加并使用可配置超时的命名端点

另一种解决方案是使用标题“to”并发送中介。在这种情况下,应考虑使用http.socket.timout配置的超时:

<header name="To" value="http://host:port/xxx"/>
<send/>

直通代理使用具有默认配置的匿名端点,您应该尝试添加并使用可在其上配置超时的命名端点

另一种解决方案是使用标题“to”并发送中介。在这种情况下,应考虑使用http.socket.timout配置的超时:

<header name="To" value="http://host:port/xxx"/>
<send/>

直通代理使用具有默认配置的匿名端点,您应该尝试添加并使用可在其上配置超时的命名端点

另一种解决方案是使用标题“to”并发送中介。在这种情况下,应考虑使用http.socket.timout配置的超时:

<header name="To" value="http://host:port/xxx"/>
<send/>

直通代理使用具有默认配置的匿名端点,您应该尝试添加并使用可在其上配置超时的命名端点

另一种解决方案是使用标题“to”并发送中介。在这种情况下,应考虑使用http.socket.timout配置的超时:

<header name="To" value="http://host:port/xxx"/>
<send/>

由于您将nhttp用作传输,请在nhttp.properties中添加[1]和[2]

http.socket.timeout=600000
synapse.sal.endpoints.sesssion.timeout.default=600000
synapse.global_timeout_interval=600000

#In memory statistics cleaning state 
statistics.clean.enable=false

# Dependency tracking Synapse observer
# Comment out to disable dependency management
synapse.observers=org.wso2.carbon.mediation.dependency.mgt.DependencyTracker

# Uncomment following to support fallback XPATH 2.0 support with DOM and Saxon
#synapse.xpath.dom.failover.enabled=true
synapse.temp_data.chunk.size=3072

# A configuration to add tenant information to the out thread local carbon context
synapse.carbon.ext.tenant.info=org.wso2.carbon.mediation.initializer.handler.CarbonTenantInfoConfigurator

#external component registration for secure vault xpath function lookup
synapse.xpath.func.extensions=org.wso2.carbon.mediation.security.vault.xpath.SecureVaultLookupXPathFunctionProvider
## Pass-through HTTP transport specific tuning parameters
worker_pool_size_core=400
worker_pool_size_max=500
worker_thread_keepalive_sec=600
#worker_pool_queue_length=-1
#io_threads_per_reactor=2
io_buffer_size=16384
#http.max.connection.per.host.port=32767
http.socket.timeout=600000

# This property is crucial for automated tests
http.socket.reuseaddr=true

## Other parameters
#http.user.agent.preserve=false
#http.server.preserve=true
#http.connection.disable.keepalive=false
rest.dispatcher.service=__MultitenantDispatcherService
# URI configurations that determine if it requires custom rest dispatcher
rest_uri_api_regex=\\w+://.+:\\d+/t/.*|\\w+://.+\\w+/t/.*|^(/t/).*
rest_uri_proxy_regex=\\w+://.+:\\d+/services/t/.*|\\w+://.+\\w+/services/t/.*|^(/services/t/).*
[1] [2]将帮助您在服务器端和客户端分别定义超时

[1] http.socket.timeout.receiver=侦听器的套接字超时 [2] http.socket.timeout.sender=发件人的套接字超时

范例 [1] http.socket.timeout.receiver=120000
[2] http.socket.timeout.sender=120000

由于您使用的是nhttp作为传输,请在nhttp.properties中添加[1]和[2]

http.socket.timeout=600000
synapse.sal.endpoints.sesssion.timeout.default=600000
synapse.global_timeout_interval=600000

#In memory statistics cleaning state 
statistics.clean.enable=false

# Dependency tracking Synapse observer
# Comment out to disable dependency management
synapse.observers=org.wso2.carbon.mediation.dependency.mgt.DependencyTracker

# Uncomment following to support fallback XPATH 2.0 support with DOM and Saxon
#synapse.xpath.dom.failover.enabled=true
synapse.temp_data.chunk.size=3072

# A configuration to add tenant information to the out thread local carbon context
synapse.carbon.ext.tenant.info=org.wso2.carbon.mediation.initializer.handler.CarbonTenantInfoConfigurator

#external component registration for secure vault xpath function lookup
synapse.xpath.func.extensions=org.wso2.carbon.mediation.security.vault.xpath.SecureVaultLookupXPathFunctionProvider
## Pass-through HTTP transport specific tuning parameters
worker_pool_size_core=400
worker_pool_size_max=500
worker_thread_keepalive_sec=600
#worker_pool_queue_length=-1
#io_threads_per_reactor=2
io_buffer_size=16384
#http.max.connection.per.host.port=32767
http.socket.timeout=600000

# This property is crucial for automated tests
http.socket.reuseaddr=true

## Other parameters
#http.user.agent.preserve=false
#http.server.preserve=true
#http.connection.disable.keepalive=false
rest.dispatcher.service=__MultitenantDispatcherService
# URI configurations that determine if it requires custom rest dispatcher
rest_uri_api_regex=\\w+://.+:\\d+/t/.*|\\w+://.+\\w+/t/.*|^(/t/).*
rest_uri_proxy_regex=\\w+://.+:\\d+/services/t/.*|\\w+://.+\\w+/services/t/.*|^(/services/t/).*
[1] [2]将帮助您在服务器端和客户端分别定义超时

[1] http.socket.timeout.receiver=侦听器的套接字超时 [2] http.socket.timeout.sender=发件人的套接字超时

范例 [1] http.socket.timeout.receiver=120000
[2] http.socket.timeout.sender=120000

由于您使用的是nhttp作为传输,请在nhttp.properties中添加[1]和[2]

http.socket.timeout=600000
synapse.sal.endpoints.sesssion.timeout.default=600000
synapse.global_timeout_interval=600000

#In memory statistics cleaning state 
statistics.clean.enable=false

# Dependency tracking Synapse observer
# Comment out to disable dependency management
synapse.observers=org.wso2.carbon.mediation.dependency.mgt.DependencyTracker

# Uncomment following to support fallback XPATH 2.0 support with DOM and Saxon
#synapse.xpath.dom.failover.enabled=true
synapse.temp_data.chunk.size=3072

# A configuration to add tenant information to the out thread local carbon context
synapse.carbon.ext.tenant.info=org.wso2.carbon.mediation.initializer.handler.CarbonTenantInfoConfigurator

#external component registration for secure vault xpath function lookup
synapse.xpath.func.extensions=org.wso2.carbon.mediation.security.vault.xpath.SecureVaultLookupXPathFunctionProvider
## Pass-through HTTP transport specific tuning parameters
worker_pool_size_core=400
worker_pool_size_max=500
worker_thread_keepalive_sec=600
#worker_pool_queue_length=-1
#io_threads_per_reactor=2
io_buffer_size=16384
#http.max.connection.per.host.port=32767
http.socket.timeout=600000

# This property is crucial for automated tests
http.socket.reuseaddr=true

## Other parameters
#http.user.agent.preserve=false
#http.server.preserve=true
#http.connection.disable.keepalive=false
rest.dispatcher.service=__MultitenantDispatcherService
# URI configurations that determine if it requires custom rest dispatcher
rest_uri_api_regex=\\w+://.+:\\d+/t/.*|\\w+://.+\\w+/t/.*|^(/t/).*
rest_uri_proxy_regex=\\w+://.+:\\d+/services/t/.*|\\w+://.+\\w+/services/t/.*|^(/services/t/).*
[1] [2]将帮助您在服务器端和客户端分别定义超时

[1] http.socket.timeout.receiver=侦听器的套接字超时 [2] http.socket.timeout.sender=发件人的套接字超时

范例 [1] http.socket.timeout.receiver=120000
[2] http.socket.timeout.sender=120000

由于您使用的是nhttp作为传输,请在nhttp.properties中添加[1]和[2]

http.socket.timeout=600000
synapse.sal.endpoints.sesssion.timeout.default=600000
synapse.global_timeout_interval=600000

#In memory statistics cleaning state 
statistics.clean.enable=false

# Dependency tracking Synapse observer
# Comment out to disable dependency management
synapse.observers=org.wso2.carbon.mediation.dependency.mgt.DependencyTracker

# Uncomment following to support fallback XPATH 2.0 support with DOM and Saxon
#synapse.xpath.dom.failover.enabled=true
synapse.temp_data.chunk.size=3072

# A configuration to add tenant information to the out thread local carbon context
synapse.carbon.ext.tenant.info=org.wso2.carbon.mediation.initializer.handler.CarbonTenantInfoConfigurator

#external component registration for secure vault xpath function lookup
synapse.xpath.func.extensions=org.wso2.carbon.mediation.security.vault.xpath.SecureVaultLookupXPathFunctionProvider
## Pass-through HTTP transport specific tuning parameters
worker_pool_size_core=400
worker_pool_size_max=500
worker_thread_keepalive_sec=600
#worker_pool_queue_length=-1
#io_threads_per_reactor=2
io_buffer_size=16384
#http.max.connection.per.host.port=32767
http.socket.timeout=600000

# This property is crucial for automated tests
http.socket.reuseaddr=true

## Other parameters
#http.user.agent.preserve=false
#http.server.preserve=true
#http.connection.disable.keepalive=false
rest.dispatcher.service=__MultitenantDispatcherService
# URI configurations that determine if it requires custom rest dispatcher
rest_uri_api_regex=\\w+://.+:\\d+/t/.*|\\w+://.+\\w+/t/.*|^(/t/).*
rest_uri_proxy_regex=\\w+://.+:\\d+/services/t/.*|\\w+://.+\\w+/services/t/.*|^(/services/t/).*
[1] [2]将帮助您在服务器端和客户端分别定义超时

[1] http.socket.timeout.receiver=侦听器的套接字超时 [2] http.socket.timeout.sender=发件人的套接字超时

范例 [1] http.socket.timeout.receiver=120000
[2] http.socket.timeout.sender=120000

请共享您的synapse配置以及更新。添加了repository/conf/synapse.properties请共享您的synapse配置。添加了repository/conf/synapse.properties请共享您的synapse配置。添加了repository/conf/synapse.properties请共享您的synapse配置。添加repository/conf/synapse.propertiesThanks以获得回复!但是我正在使用ESB和axis2_nhttp.xml配置。Transports是org.apache.synapse.transport.nhttp.HttpCoreNIO%%。我正在更新我的帖子并添加repository/conf/passthru-http.properties。仍然得到连接关闭。感谢回复!但是我正在使用ESB和axis2_nhttp.xml配置。Transports是org.apache.synapse.transport.nhttp.HttpCoreNIO%%。我正在更新我的帖子并添加repository/conf/passthru-http.properties。仍然得到连接关闭。感谢回复!但是我正在使用ESB和axis2_nhttp.xml配置。Transports是org.apache.synapse.transport.nhttp.HttpCoreNIO%%。我正在更新我的帖子并添加repository/conf/passthru-http.properties。仍然得到连接关闭。感谢回复!但是我正在使用ESB和axis2_nhttp.xml配置。Transports是org.apache.synapse.transport.nhttp.HttpCoreNIO%%。我正在更新我的帖子并添加repository/conf/passthru-http.properties。连接仍然很近,谢谢!这很有帮助。有了这个属性,一切正常。谢谢!这很有帮助。有了这个属性,一切正常。谢谢!这很有帮助。有了这个属性,一切正常。谢谢!这很有帮助。有了这个属性,它就可以正常工作了。