专业化管理 > 配置您的 Windchill 环境 > 使用 Windchill Configuration Assistant 配置 Windchill > 配置一览 > configureWindchill > 确定系统内存和 CPU
  
确定系统内存和 CPU
运行 configureWindchill 目标时,Windchill Configuration Assistant 执行的第一步是确定操作系统特征、总内存、空闲内存以及系统中可用的 CPU 数量。
在 Assistant 初始化期间,将使用 init 目标报告类似于如下内容的服务器度量值:
[echo] Number of CPUs detected: 8
[echo] Physical Memory: 12285 MB
[echo] Free Memory: 8473 MB
[echo] Maximum Java heap size=8000 MB
[echo] WT_HOME=D:\PTC\Windchill
[echo] VmVendor=Oracle Corporation
[echo] Operating System=Windows 7
[echo] OS Arch=amd64
将内存分配给 Windchill 之前,Assistant 先确定可用的内存大小。服务器度量值 (前面所述) 标识了系统中安装的总内存以及空闲内存大小。
为了避免向 Windchill 过度分配内存,Assistant 会为操作系统保留 20% 的物理内存。分配给操作系统的内存百分比由特性 percentPhysicalMemoryReservedForOS 控制。Assistant 还会查找 RDBMS 和 LDAP 服务器的位置。如果其中任一台服务器配置为与 Windchill 运行于同一主机上,则 Assistant 将进一步减小对 Windchill 可用的空闲内存量。
为协助确定内存分配,Assistant 将调用 allocatePhysmem 目标。使用此目标在交互模式下运行时提供的提示可用于:
指定要分配的内存百分比。
选取是否依据总物理内存或空闲内存确定整个 Windchill 内存需求量的大小。
如果选择了空闲内存,则可以输入空闲内存量 (RAM) 来覆盖计算的值
默认值指定 Assistant 在其计算过程中使用空闲内存和 80%。因此,应在运行该步骤前停止 Windchill。您还应停止正运行于该服务器上且不应与 Windchill 一起运行的任何其他应用程序。
percentMemoryRegionReservedForWindchill 特性控制着可供 Windchill 使用的内存百分比。默认值为 80。如前所述,通过编辑 Configurator.properties 文件中的值可以更改默认值。
在以下示例中,系统报告的空闲内存为 8125 MB。基于 80% 的默认值,Assistant 将 6500 MB 内存分配给 Windchill
allocatePhysMem:
[input] Percent of physical memory to reserve for Operating System [20]
[echo] OS memory requirement=2457 MB
[echo] Minimum memory requirement for MethodServer: 768 MB
[echo] Minimum memory requirement for ServerManager: 144 MB
[echo] Windchill Requires a minimum of 912 MB
[echo] Total Memory requirement: 3369.0 MB
[input] Allocate Windchill Memory region from total (12285 MB) or free (8473 MB) physical memory ([free], total)
[echo] Allocating Windchill Memory region from free memory
[input] Enter % of free RAM (8473 MB) to allocate to Windchill: [80]
[echo] % free memory allocated to Windchill: 80
[echo] Windchill Memory Region= 6778 MB