0

使用 Workload Scheduler 9.x 进行镜像的一些调整建议是什么

4

1 回答 1

0

免责声明 - 这是一个可能的解决方案,但每个客户环境都不同,可能需要额外的调整。建议联系 Workload Scheduler 支持团队讨论任何配置更改。

调音

  • 使用 Oracle jdbc 类型 4 作为 WebSphere 中的数据源对象类型。据我了解,这已经完成了。

  • 在文件 resources-pme.xml 中将 maxThreads 从 10 更改为 50。将
    cacheSize 参数添加到 TWSConfig.properties 文件


  • 调整resources.xml 中 minConnections 和 maxConnections的数据源连接池设置

在文件 resources-pme.xml 中将 maxThreads 从 10 更改为 50。

位置: TWA_HOME/WAS/TWSProfile/config/cells//nodes/DefaultNode/servers//resources-pme.xml

创建 resources-pme.xml 的备份副本,然后更改行:

从:

工厂 xmi:type="workmanager:WorkManagerInfo" xmi:id="WorkManagerInfo_Default" name="DefaultWorkManager" jndiName="wm/default" description="WebSphere Default WorkManager" category="Default" minThreads="1" maxThreads="10 " threadPriority="5" numAlarmThreads="5" isGrowable="false" workReqQFullAction="0"

至:

工厂 xmi:type="workmanager:WorkManagerInfo" xmi:id="WorkManagerInfo_Default" name="DefaultWorkManager" jndiName="wm/default" description="WebSphere Default WorkManager" category="Default" minThreads="1" maxThreads="50 " threadPriority="5" numAlarmThreads="5" isGrowable="false" workReqQFullAction="0"

调整 resources.xml 中 minConnections 和 maxConnections 的数据源连接池设置。

地点:

TWA_HOME/WAS/TWSProfile/config/cells//nodes/DefaultNode/servers//resources.xml

创建 resources.xml 的备份副本,然后更改该行:

connectionPool xmi:id="ConnectionPool_1493330406573" connectionTimeout="180" maxConnections="30" minConnections="1" reapTime="180" usedTimeout="1800"agedTimeout="0" purgePolicy="EntirePool" numberOfSharedPoolPartitions="0" numberOfUnsharedPoolPartitions= "0" numberOfFreePoolPartitions="0" freePoolDistributionTableSize="0" sprayThreshold="-1" sprayCreationInterval="0" testConnection="true" testConnectionInterval="15"stuckTimerTime="0"stuckTime="0"stuckThreshold="0"/

至:

connectionPool xmi:id="ConnectionPool_1493330406573" connectionTimeout="180" maxConnections="50" minConnections="0" reapTime="180" usedTimeout="1800"agedTimeout="0" purgePolicy="EntirePool" numberOfSharedPoolPartitions="0" numberOfUnsharedPoolPartitions= "0" numberOfFreePoolPartitions="0" freePoolDistributionTableSize="0" sprayThreshold="-1" sprayCreationInterval="0" testConnection="true" testConnectionInterval="15"stuckTimerTime="0"stuckTime="0"stuckThreshold="0"/

将 cacheSize 参数添加到 TWSConfig.properties 文件。

打开文件 TWSConfig.properties:

com.ibm.tws.planner.monitor.cachesize=20000

所有这些设置在重启 TWS WebSphere 服务器实例后生效。

于 2017-12-13T15:23:33.560 回答