专业化管理 > 配置您的 Windchill 环境 > 使用 Windchill Configuration Assistant 配置 Windchill > 配置一览 > configureWindchill > 设置 Windchill 缓存特性值
  
设置 Windchill 缓存特性值
Assistant 将在 Windchill 应用程序特性中设置缓存设置。首先考虑一组用于评估内存中数据缓存大小的特性。
如果系统不是欠载运行,很难调整最佳缓存。Windchill Configuration Assistant 只是依据数据库特定表中找到的行数建议初始缓存大小。
配置的 Windchill 缓存特性如下:
wt.admin.cache.maxDomains
wt.cache.size.AclCache
wt.cache.size.EnumerationDefinitionCache
wt.cache.size.IBADefViewManager$IBADefViewCache
wt.cache.size.IndexListCache
wt.cache.size.PagingSessionCache
wt.cache.size.PolicyAcl
wt.cache.size.PreferenceCache
wt.cache.size.RoleAccessCache
wt.cache.size.SessionCache
wt.cache.size.StandardFederatedServerHelper$RemoteObjectIdCache
wt.cache.size.StandardFvService$ActiveFolderCache
wt.cache.size.StandardUfidSrvService$RemoteObjectIdCache
wt.cache.size.StructEnumAttTemplateCache
wt.cache.size.TypeDefinitionCache2
wt.cache.size.WTPrincipalCache
wt.services/rsc/default/ObjectReferenceCacheTable/ContainerCache.Size
wt.services/src/default/ObjectReferenceCacheTable/ContainerTeamCache
每个缓存包含多个条目,其中每个条目都有效地表示相应数据库表中的一行。应评估 Windchill 缓存的大小以仅保存最近访问的数据行 (也称为“工作集”)。
Assistant 使用两种基本算法来计算缓存大小。第一种缓存评估算法是获取数据库表中的总行数,然后依据表中总行数的可配置百分比确定缓存大小。
可配置百分比使用 Configurator.properties 中的以下特性进行定义:
WTContainer.cache.percent
ContainerTeam.cache.percent
WTPrincipal.cache.percent
PolicyAcl.cache.percent
RemoteObjectInfo.cache.percent
AdministrativeDomain.cache.percent
Session.cache.percent
RoleAccess.cache.percent
Preference.cache.percent
PagingSession.cache.percent
IBADefinition.cache.percent
EnumerationDefinitionCache.cache.percent
LWCStructEnumAttTemplate.cache.percent
LWCTypeDefinition.cache.percent
FvVault.cache.percent
IndexPolicyList.cache.percent
第二种缓存评估算法基于系统中定义的用户数量,以及应在工作负荷高峰期间同时执行 Windchill 请求的用户百分比。同时活动的所有用户所占的预测百分比由特性 peakActiveUsersPercent 控制,默认值为 10。
无论执行哪种算法,最终的缓存大小都是出厂设置大小和计算所得缓存大小中较大的那个。每个缓存都应用一个可配置的大小限值,以防止评估算法过度分配内存。以上所有缓存的最大大小都由特性 <CacheName>.cache.size.limit 控制,在 Configurator.properties 中进行定义。您可以在交互运行 Assistant 时将计算的值覆盖。例如,以下各行显示了设置会话缓存特性的行:
[echo] Named users: 100
[input] Estimated peak number of active users: [10]
[echo] Expected peak active users: 10
[echo] Configuring wt.cache.size.SessionCache currentSize=500 rowcount=100 percent=20
[input] Set Session Cache Size (max=2000): [500]
评估数据缓存之后,Assistant 会考虑用来配置数据库连接、JDBC 语句缓存大小等特性的各种特性。这些特性均位于 <Windchill>/utilities/wca/Windchill/db/db.properties 中。其中很多特性的初始值都非常适用于资源最低的环境,例如便携式计算机系统或小型台式计算机系统。在堆大小较大的服务器上配置 Windchill 时,应对这些特性做出相应调整。