wso2 api-manager中的默认超时?怎么增加呢?

时间:2016-06-01 13:45:25

标签: timeout wso2 wso2-am

我在wso2 api manager中创建了很少的API。我的后端服务有时会在5-8秒内响应,或者最多需要50秒。 wso2 apis的默认超时是多少? 我检查了这个文件 - passthru-http.properties。 它具有以下内容:

## This file contains the configuration parameters used by the Pass-through HTTP transport
## Nhttp tuning parameters 
#http.socket.timeout=60000
#http.connection.timeout=0
#http.socket.buffer-size=8192
#http.socket.linger=-1
#http.nio.select-interval=1000
#http.tcp.nodelay=true
#http.connection.stalecheck=false
#http.socket.reuseaddr=false

如果我取消注释这一行 - http.socket.timeout = 60000,默认超时是否会变为60秒?

如果我将defualt超时增加到60秒,那么它们会对性能产生什么重大影响吗?

提前致谢!

1 个答案:

答案 0 :(得分:1)

有一篇文章展示了为了增加APIM中的超时时间而需要编辑的内容。

How to increase timeout

如果您的后端服务需要很长时间,建议先检查它们并稍微改进它们。

相关问题