首页 > 解决方案 > 对于超过 125 个并发用户,Websphere 连接池中最大连接数的理想值应该是多少?

问题描述

目前我正面临来自 websphere 服务器的以下问题,

[5/15/18 6:45:20:959 BST] 0000060d FreePool E J2CA0045E:为资源 jdbc/ICWS 调用方法 createOrWaitForConnection 时连接不可用。

J2CA0045E 错误的根本原因是,

所以我检查了上面提到的所有原因,最后发现最大连接数设置得很低。我面临的困难是找到最大连接的理想数量。我在websphere中部署的webservice有125个并发请求,目前最大连接大小是50。但是我发现还不够。以下是服务器规格,

LPAR 级别的内存使用量为 14 GB 中的 12 GB。

堆:

我可以使用上述服务器规格将最大连接值设置为 200 或更多吗?

或者

这个参数有理想值吗?

标签: web-serviceswebsphereconnection-pooling

解决方案


There is no fixed answer that applies to all usage patterns. It's a matter of tuning. For a starting point, a good guideline is that if you have a web service that requires a single connection each time it is called, then aim to have the maximum number of concurrent web service requests and maximum number of connections match.


推荐阅读