在创建ASE Server后,我们需要根据机器的硬件资源情况和应用特征等因素调整ASE Server的参数设置。在这里将以本人的一个虚拟机环境为例加以说明。
虚拟机环境如下:
* 4个逻辑CPU (Intel(R) Xeon(R) CPU E5620 @ 2.40GHz)
* 内存8GB,可用内存4GB
针对应用:
本人在文章"一个测试数据库OLTP性能的Benchmark程序"中所述的应用
下面是具体的设置:
1. 调整ASE Server的配置参数
sp_configure 'max memory' , 2097152
go
sp_configure 'lock scheme' , 0 , 'datarows'
go
sp_configure 'procedure cache size' , 102400 --200M
go
sp_configure 'statement cache size', 10240 --20M
go
sp_configure 'enable literal autoparam', 1
go
sp_configure 'optimization goal','allrows_oltp'
go
sp_configure 'enable monitoring',1
go
sp_configure 'disk i/o structures', 1024
go
sp_configure 'max online engines' , 4
go
sp_configure 'number of user connections' , 200
go
sp_configure 'number of locks' , 1000000
go
sp_configure 'number of open objects' , 1000
go
sp_configure 'number of open indexes' , 2000
go
sp_configure 'number of open partitions' , 2000
go
2. 设置缺省数据高速缓存
sp_cacheconfig 'default data cache' , '1024M', 'cache_partition=8'
go
3. 修改线程池设置
alter thread pool syb_blocking_pool with thread count = 2
go
alter thread pool syb_default_pool with thread count = 4
go
免责声明:本文系网络转载或改编,未找到原创作者,版权归原作者所有。如涉及版权,请联系删
武汉格发信息技术有限公司,格发许可优化管理系统可以帮你评估贵公司软件许可的真实需求,再低成本合规性管理软件许可,帮助贵司提高软件投资回报率,为软件采购、使用提供科学决策依据。支持的软件有: CAD,CAE,PDM,PLM,Catia,Ugnx, AutoCAD, Pro/E, Solidworks ,Hyperworks, Protel,CAXA,OpenWorks LandMark,MATLAB,Enovia,Winchill,TeamCenter,MathCAD,Ansys, Abaqus,ls-dyna, Fluent, MSC,Bentley,License,UG,ug,catia,Dassault Systèmes,AutoDesk,Altair,autocad,PTC,SolidWorks,Ansys,Siemens PLM Software,Paradigm,Mathworks,Borland,AVEVA,ESRI,hP,Solibri,Progman,Leica,Cadence,IBM,SIMULIA,Citrix,Sybase,Schlumberger,MSC Products...