Was 通过配置文件修改连接池参数方法
注:只适用于其他原因导致控制台启动不了无法访问控制的情况下使用
- 连接池配置文件为:resources.xml
- 通过命令find -name resources.xml查询。
- 注:涉及resources.xml文件内容两种情况
- 以was控制台(Dmgr01)所在服务器内容查下结果,一般有两个地方的文件需要修改,一个是Dmgr01所在路径的xx的集群(xx_cluster)内容需要修改,一个是AppSrv01文件下的集群(xx_cluster)内容需要修改。
- 控制台不在的副节点服务器,只有修改AppSrv01文件下面的集群(xx_cluster)文件夹。
- 如果服务器上面有多个集群,则要根据所要修改的集群名称进行定位查找。
以xx系统为例
服务器xx1
服务器xx2
服务器xx1内容:
涉及路径:
1、
/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/config/cells/oaapp1Cell01/clusters/xx_cluster
2、
/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/config/cells/oaapp1Cell01/clusters/xx_cluster/
文件修改内容:
默认内容:
connectionTimeout="180" maxConnections="10" minConnections="1" reapTime="180" unusedTimeout="1800" agedTimeout="0"
修改后的
connectionTimeout="180" maxConnections="2000" minConnections="200" reapTime="180" unusedTimeout="1800" agedTimeout="0"
xx2
文件路径:
/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/config/cells/oaapp1Cell01/clusters/xx_cluster/resources.xml
默认内容:
connectionTimeout="180" maxConnections="10" minConnections="1" reapTime="180" unusedTimeout="1800" agedTimeout="0"
修改后的
connectionTimeout="180" maxConnections="2000" minConnections="200" reapTime="180" unusedTimeout="1800" agedTimeout="0"