You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PoolingHttpClientConnectionManager connectionManager = new PoolingHttpClientConnectionManager();
connectionManager.setMaxTotal(portalConfig.connectPoolMaxTotal()); //最大连接数
connectionManager.setDefaultMaxPerRoute(portalConfig.connectPoolMaxPerRoute()); //每个路由(域名)最大连接数
在 PortalConfig 新增配置属性
public int connectPoolMaxTotal() {
return getIntProperty("api.pool.max.total", 200);
}
public int connectPoolMaxPerRoute() {
return getIntProperty("api.pool.max.per.route", 20);
}
清晰简洁地描述一下这个特性的备选方案
无
其它背景
在这里添加和这个特性请求有关的背景说明、截图
The text was updated successfully, but these errors were encountered:
你的特性请求和某个问题有关吗?请描述
RestTemplateFactory
清晰简洁地描述一下你希望的解决方案
希望 Portal 模块 支持配置 RestTemplate 的 connectionManager的MaxTotal(最大连接数) 和 MaxPerRoute(每个路由的连接大小)
在 PortalConfig 新增配置属性
清晰简洁地描述一下这个特性的备选方案
其它背景
在这里添加和这个特性请求有关的背景说明、截图
The text was updated successfully, but these errors were encountered: