[计算机软件及应用]cognos性能调优.doc

上传人:音乐台 文档编号:1991473 上传时间:2019-01-28 格式:DOC 页数:35 大小:382.21KB
返回 下载 相关 举报
[计算机软件及应用]cognos性能调优.doc_第1页
第1页 / 共35页
[计算机软件及应用]cognos性能调优.doc_第2页
第2页 / 共35页
[计算机软件及应用]cognos性能调优.doc_第3页
第3页 / 共35页
亲,该文档总共35页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述

《[计算机软件及应用]cognos性能调优.doc》由会员分享,可在线阅读,更多相关《[计算机软件及应用]cognos性能调优.doc(35页珍藏版)》请在三一文库上搜索。

1、文档存盘名称目录目录1第一章 软件环境调优31.1 HTTP SERVER(WEB SERVER)配置文件修改31.1.1 Timeout31.1.2 MaxKeepAliveRequests31.1.3 KeepAliveTimeout31.2 APPLICATION SERVER(ReportNet自带tomcat)配置文件修改31.2.1 maxProcessors41.2.2 AcceptCount41.2.3 ConnectionTimeout41.2.4 session-timeout41.3 Cognos ReportNet配置文件修改41.3.1 warpproperties.

2、xml41.3.1.1 VirtualMemoryDiagnostics51.3.1.2 MaxCachedQueries51.3.2 reportservice.xml51.3.2.1 max_process61.3.2.2 linger_process61.3.2.3 max_non_affine_connections_per_process61.3.2.4 idle_process_check_interval_ms71.3.2.5 idle_process_max_idle_ticks71.3.2.6 queue_time_limit_ms71.3.2.7 async_wait_ti

3、meout_ms81.3.3 batchreportservice.xml81.3.3.1 max_process81.3.3.2 linger_process91.3.3.3 max_non_affine_connections_per_process91.3.3.4 idle_process_check_interval_ms91.3.3.5 idle_process_max_idle_ticks101.3.3.6 queue_time_limit_ms101.3.3.7 async_wait_timeout_ms101.3.4 CQEConfig.xml111.3.4.1 Timeout

4、111.3.4.2 PoolSize111.3.4.3 queryReuse111.4 Cognos ReportNet服务器管理设置111.4.1 Content Store数据库连接池设定111.4.2 开启审计功能131.4.2.1 Audit Native Query131.4.2.2 Audit logging level131.4.2.3 Audit run-time usage logging level131.4.2.4 Audit administration logging level131.4.2.5 Audit other logging level131.4.2.6

5、审核等级说明141.5 更改网关 URI141.6 更改ReportNet启动服务资源配置151.7 调整Sort buffer size161.8 分布式部署161.9 应用服务器性能评估17第二章 报表设计调优191.1 Report Stuido设计调优191.1.1 手写SQL定制报表查询191.1.2 报表函数的使用211.1.3 过滤条件顺序调整211.1.4 查询字段、查询表顺序调整221.1.5 聚合前后设置过滤条件221.1.6 自动分组汇总设置231.1.7 字段排序设置231.1.8 自动排序设置241.1.9 报表Processing设置251.1.10 外连接设置26

6、1.1.11 向量乘积设置261.1.12 使用With子句271.1.13 报表服务器本地缓存设置281.1.14 汇总项设置281.1.15 数据库查询的策略设置(First Rows设置)291.2 Framework Manager设计调优291.2.1 手写SQL定制查询主题291.2.2 函数列表指定291.2.3 表关联设定301.2.4 Edit Governors查询性能设置321.2.4.1 Report table limits设置321.2.4.2 Data retrieval limits设置331.2.4.3 Query execution time limits设

7、置331.2.4.4 Large text items limit设置34附录35第一章 软件环境调优1.1 HTTP SERVER(WEB SERVER)配置文件修改以apache为例说明,可修改apache配置文件apacheconfhttpd.conf。1.1.1 Timeout用户连接超时设置,从用户提交请求到从web server得到相应的最大时间间隔。默认值 300秒。1.1.2 MaxKeepAliveRequestsWeb server保持的最大活动请求数,允许持续连接的最大请求数,增大该值可一定程度提高性能,可将其设置为0(对最大连接请求数不做限制)。默认值为100。1.1.

8、3 KeepAliveTimeout从同一个客户端的同一个连接发过来的两个请求之间的允许的最大时间间隔,运行reportnet的浏览器会每隔一个时间间隔向服务器发出一个同步请求,如果这个值太小的话,可能会出现找不到请求的错误。默认值为15。1.2 APPLICATION SERVER(ReportNet自带tomcat)配置文件修改以TOMCAT为例说明,可修改TOMCAT配置文件CRN_ROOTtomcat*.*confserver.xml。其参数集中在行:1.2.1 maxProcessorstomcat在运行的时候允许的最大处理请求(多线程)。在服务器资源允许的情况下,提高该值可以提高对

9、资源的利用和处理速度。默认值 75。1.2.2 AcceptCountTomcat允许的最大连接数。在服务器资源允许的情况下,可提高该值。默认值为100。1.2.3 ConnectionTimeoutTomcat连接的超时设置。因为reportnet的同步连结处理http server传递给tomcat,所以该值需要和http server中KeepAliveTimeout值匹配。默认值60000秒。1.2.4 session-timeout文件路径:CRN_ROOTtomcat*.*confweb.xml30Session超时设置,默认值为30,单位分钟。1.3 Cognos ReportN

10、et配置文件修改1.3.1 warpproperties.xml文件路径:CRN_ROOTconfiguration warpproperties.xml.sample注:将warpproperties.xml.sample文件名修改为warpproperties.xml后,重启服务后配置生效。1.3.1.1 VirtualMemoryDiagnosticsVirtualMemoryDiagnostics2 监视CRN_ROOTtemp目录,如果有cclvpage*.tmp文件生成,将eDiagNoPaging=2可以对性能有所提升。1.3.1.2 MaxCachedQueriesMaxCac

11、hedQueries-1对报表提示页的缓存进行必要设置,可以提高报表的运行性能。1.3.2 reportservice.xml文件路径:CRN_ROOT webappsp2pdWEB-INFservices reportservice.xml注:修改文件后,重启服务后配置生效。1.3.2.1 max_processmax_process2ReportNet服务交互式报表处理所占进程数。默认值为2,可根据CPU数情况进行调整,通常每个CPU可支持2个处理。注:该值需要和ReportNet ReportService服务中的Maximum number of interactive report

12、service processes值匹配。1.3.2.2 linger_processlinger_process1ReportNet服务交互式报表处理初始化进程数。默认值为1,可根据CPU数情况进行调整,通常每个CPU可设置1个处理。注:提高该属性设置,可以提高服务器在非高峰使用时段的处理能力。1.3.2.3 max_non_affine_connections_per_processmax_non_affine_connections_per_process4ReportNet服务交互式报表处理所占线程数。默认值为4,可根据CPU数情况进行调整,通常每个CPU最大可支持4个处理,Windo

13、ws环境建议设置为2个处理。注:该值需要和ReportNet ReportService服务中的Number of low affinity connections for the interactive report service值匹配。1.3.2.4 idle_process_check_interval_msidle_process_check_interval_ms30000空闲进程检测时间间隔,默认值为30000,单位为毫秒。由于进程的频繁启动退出会消耗服务器资源,可根据并发使用情况,减小时间间隔,以提高进程的使用效率。1.3.2.5 idle_process_max_idle_t

14、icksidle_process_max_idle_ticks10空闲进程检测标记,默认值为10。由于进程的频繁启动退出会消耗服务器资源,可根据并发使用情况,增大设置,以提高进程的使用效率。1.3.2.6 queue_time_limit_msqueue_time_limit_ms30000报表服务排队时间限制,默认值为30000,单位毫秒。可根据并发查询情况,增大时间限制,以避免请求被取消。注:该值需要和ReportNet ReportService服务中的Queue time limit of report service in seconds值匹配。1.3.2.7 async_wait_

15、timeout_msasync_wait_timeout_ms30000Dispatcher请求等待同步时间,默认值为30000,单位毫秒。可根据并发查询情况,增大时间限制,以避免请求被取消。注:该值需要和tomcat以及apache中的连结超时相匹配。1.3.3 batchreportservice.xml文件路径:CRN_ROOT webappsp2pdWEB-INFservices batchreportservice.xml注:修改文件后,重启服务后配置生效。1.3.3.1 max_processmax_process2ReportNet服务批量报表处理所占进程数。默认值为2,可根据C

16、PU数情况进行调整,通常每个CPU可支持2个处理。注:该值需要和ReportNet ReportService服务中的Maximum number of batch report service processes值匹配。1.3.3.2 linger_processlinger_process1ReportNet服务批量报表处理初始化进程数。默认值为1,可根据CPU数情况进行调整,通常每个CPU可设置1个处理。注:提高该属性设置,可以提高服务器在非高峰使用时段的处理能力。1.3.3.3 max_non_affine_connections_per_processmax_non_affine_c

17、onnections_per_process4ReportNet服务批量报表处理所占线程数。默认值为4,可根据CPU数情况进行调整,通常每个CPU最大可支持4个处理,Windows环境建议设置为2个处理。注:该值需要和ReportNet ReportService服务中的Number of low affinity connections for the batch report service值匹配。1.3.3.4 idle_process_check_interval_msidle_process_check_interval_ms30000空闲进程检测时间间隔,默认值为30000,单位为

18、毫秒。由于进程的频繁启动退出会消耗服务器资源,可根据并发使用情况,减小时间间隔,以提高进程的使用效率。1.3.3.5 idle_process_max_idle_ticksidle_process_max_idle_ticks10空闲进程检测标记,默认值为10。由于进程的频繁启动退出会消耗服务器资源,可根据并发使用情况,增大设置,以提高进程的使用效率。1.3.3.6 queue_time_limit_msqueue_time_limit_ms14400000批量报表处理排队时间限制,默认值为14400000,单位毫秒。可根据并发查询情况,增大时间限制,以避免请求被取消。1.3.3.7 asyn

19、c_wait_timeout_msasync_wait_timeout_ms30000Dispatcher请求等待同步时间,默认值为30000,单位毫秒。可根据并发查询情况,增大时间限制,以避免请求被取消。注:该值需要和tomcat以及apache中的连结超时相匹配。1.3.4 CQEConfig.xml文件路径:CRN_ROOTconfiguration CQEConfig.xml.sample注:将CQEConfig.xml.sample文件名修改为CQEConfig.xml后,重启服务后配置生效。1.3.4.1 Timeout应用数据库连接超时设置。默认值为900,单位秒。1.3.4.2

20、 PoolSize应用数据库连接池最大连接数设置。默认值为20。1.3.4.3 queryReuse查询缓冲设置。默认值为5,最大值为10,设置为0将关闭查询缓冲。注:如要设置该属性需要删除将该属性前的注释标记。1.4 Cognos ReportNet服务器管理设置1.4.1 Content Store数据库连接池设定在浏览器内输入Cognos ReportNet门户登陆地址(http:/localhost/crn/),在登入门户后点击Tools下拉菜单下的服务器管理(Server Administration),在监控(Monitor)的标签页下,选择类型(Type)服务(Services)

21、,在下方列出的所有服务中,选择ContentManagerService的属性,点击设置(Settings),在列出的环境(Enviorment)后点击编辑(Edit),将“改写从父条目获取的设置”(Override the settings acquired from the parent entry)选中,在出现的下方列表中可以设置Content Store数据库连接池的几项属性。下表是上图中四个参数的属性说明ParameterPurposeDefaultDbConnectPoolMaxThe maximum number of concurrent database connection

22、s that are allowed to the content store.Valid settings are -1, or 5 to 2147483647 or the database setting, whichever is less.-1 (unlimited)DbConnectPoolTimeoutMaximum time in milliseconds that a thread waits for a connection to be available from the pool.Valid settings are -1 to 2147483627.A setting

23、 of 0 specifies that threads never wait for a connection if one is not available immediately.-1 (unlimited)DbConnectPoolIldleTimeMinimum time in milliseconds that a connection stays idle in the pool. Only valid if the value of DbConnectPoolCleanUpPeriod setting is positive.Valid settings are -1 to 2

24、147483647.A setting of 0 or -1 specifies that idle connections are closed upon content manager restart.300000 (5 minutes)DbConnectPoolCleanUpPeriodTime in milliseconds between invocations of a cleanup thread that closes idle connections in the pool that exceed the setting of DbConnectPoolIdleTime.Va

25、lid settings are -1 to 2147483647.A setting of 0 or -1 specifies no clean up thread.300000 (5 minutes)注:详情请参见安装配置手册Cognos ReportNet(TM) Administration and Security Guide中的Manage Content Manager Database Connection Pool Settings章节。1.4.2 开启审计功能在浏览器内输入Cognos ReportNet门户登陆地址(http:/localhost/crn/),在登入门户后

26、点击Tools下拉菜单下的服务器管理(Server Administration),选择服务器的属性后,点击设置(Settings),在下方的列表中可以对审核等级等属性进行设置。1.4.2.1 Audit Native Query将该设置选择为Yes后,才能看到详细的日志信息。可以通过对日志的查看达到服务器检测的效果,并根据检测结果适当调节服务器设置,使之达到最优。1.4.2.2 Audit logging level参见4.2.6章节1.4.2.3 Audit run-time usage logging level参见4.2.6章节1.4.2.4 Audit administration

27、logging level参见4.2.6章节1.4.2.5 Audit other logging level参见4.2.6章节1.4.2.6 审核等级说明CategoryDescriptionAuditLogs events for management and control purposesAudit administrationLogs actions that involve configuration, Cognos groups and roles, data sources, distribution lists, packages, models, or deployment

28、 objectsAudit run time usageLogs actions that deliver or generate report output or actions that manipulate a report or jobAudit otherLogs actions other than run-time usage and administrationThe following table indicates the details that each level logs. 12345System and service startup and shutdownMe

29、ssages at user logonUse requestsService requests and responsesAll requests to all components along with their parameter valuesThird-party queries to ReportNet components (native query)注:详情请参见安装配置手册Cognos ReportNet(TM) Administration and Security Guide中的Log Messages章节。1.5 更改网关 URI 1. 启动 Cognos Config

30、uration。2. 点击 Environment。3. 在右侧属性栏的 Gateway URI 属性中,替换网关URI中的cognos.cgi 部分: 如果使用Windows的IIS,输入 cognosisapi.dll。 如果使用Apache Web Server,输入: http:/computer_name:port/crn/cgi-bin/module module 为以下内容: Operating systemApache 1.3 moduleApache 2.0 moduleWindowsmod_cognos.dllmod2_cognos.dllSolaris and AIXmo

31、d_cognos.somod2_cognos.soHPUXmod_cognos.slmod2_cognos.sl 如果使用的servlet gateway:https:/computer_name:port/contextName/servlet/Gateway contextName是已部署ServletGateway Web application的名称。注: 确认配置的Web server支持servlet gateway。将Gateway URI 中的主机名(computer name)更换为localhost或是服务器IP地址或机器名。 5. 保存配置,重启服务。6. 将目录CRN_ROOTwebcontent下的default.htm和index.html中含有网关cognos.cgi的URI部分替换为更换的Web Server网关。注:如果使用Apache Web Server,详情请参见安装配置手册Cognos ReportNet(TM) Installation and Configuration Guide中的Change the ReportNet Gateway章节。1.6 更改ReportN

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 其他


经营许可证编号:宁ICP备18001539号-1