SAP性能优化的培训
3 © SPRO 2018/ Page
SAP系统性能监控和优化的内容
4 © SPRO 2018/ Page
SAP系统工作负载分析
用户与服务器交互过程
Network
Network
Pres. Server
SAP Application Server
Database Server
5 © SPRO 2018/ Page
9 © SPRO 2018/ Page
SAP系统工作负载分析
响应时间的调整部分:
High wait time: Insufficient number of free work processes High roll-in time: Not enough Extended Memory or space in the Roll Buf fer available High load and generation time: SAP buffers (Program, CUA or Screen) too small High enqueue time: very large Enqueue table , many lock requests High database request time: CPU/memory bottleneck on database server; communication problem with database server , expensive SQL statements, database locks, missing indexes, missing statistics or small database buffer(s) Processing time more than twice CPU time: CPU bottlenecks High CPU time: Expensive ABAP processing, for example, processing large tables; inefficient programming High roll-wait time: Communication problem with SAP GUI or an external system, or lar ge amount of data requested
© SPRO 2018/ Page 10
SAP性能监控工具
Workload Monitor
ST03 or ST03N
Performance Optimization
1
目 录
2 © SPRO 2018/ Page
CONTENT
01 SAP系统性能监控和分析 02 S A P 参 数 调 优 03 S A P 程 序 优 化 04 其 它 优 化 途 径 05 工 具 的 演 示 及 讨 论
2
SAP性能优化是什么
e Buffers
⑦ DB Process
DB Process
DB Process
DB Process
SAP系统工作负载分析
用户与服务器交互过程:
① 用户请求发送到分发器的队列 ② 分发器队列将操作请求分配给空闲的分发器 ③ 分发器将用户请求分配给SAP的工作进程 ④ SAP的工作进程与用户在内存的信息进行数据交换 ⑤ SAP的工作进程与数据库表缓存和程序缓存进行数据交换 ⑥ SAP的工作进程将处理任务移交给数据库进程 ⑦ 数据库进程与数据库缓存进行数据交换 ⑧ 数据库缓存与数据库进行数据交换
SAP Extended Memory
Table Buffers
① Dispatche
Progra
r
SAP Roll
m
Queபைடு நூலகம்e
Memory
Buffer
④
⑥
Work Process⑤
②
Work Process
Dispatcher
Work Process
Work Process ③
DB
⑧ Databas
SAP系统性能优化对于一个企业来说十分必要,拥有良好的SAP系统 的性能可以使用户的操作的响应时间缩短,工作效率提高,减少数据 库的负载,延长硬件投资的周期等等。SAP系统性能的优化是企业 SAP系统安全、高效、持久运行的前提条件之一。
SAP系统性能的优化主要包括三个方面:
系统监控 性能分析 系统优化
8 © SPRO 2018/ Page
SAP系统性能指标
时间
Wait time Main menu(Choose transaction profile) Average roll-in time Average roll wait time Average load (and generation) time Average database request time Average CPU time Average CPU time Average response time
参考值
< 10% response time < 100 ms < 20 ms < 200 ms 10 % of response time (<50 ms) 40 % of (response time - wait time) 40 % of (response time - wait time) Not much less than processing time Depends on customer requirements – there is no general rule
6 © SPRO 2018/ Page
SAP系统工作负载分析
系统响应时间
7 © SPRO 2018/ Page
SAP系统工作负载分析
响应时间的组成部分:
调度器等待时间:调度器等待分发给工作进程 卷入时间(Roll-in):从内存区域复制用户背景信息到roll area 卷出时间(Roll-out):从roll area复制用户信息到内存区域 载入时间:载入ABAP程序和屏幕程序及缓存中的数据库表 数据库时间:当数据在数据库中被读取或者改变的时间 处理时间:执行DB处理程序所需要的时间 CPU时间:当有处理的动作它都有计时