设为首页 收藏本站
查看: 1337|回复: 0

[经验分享] SAP Basis 性能分析 记忆点

[复制链接]

尚未签到

发表于 2015-9-18 14:22:59 | 显示全部楼层 |阅读模式
  processing time和cpu time对比是一个很重要的参数,根据sap的标准,如果 processing time 大于2倍 cpu time,说明进程有过多的等待,往往可以说明存在cpu瓶颈。--当然也有其他原因,如锁等。
  
  就整体而言:   
Main menu(transaction profile)<100ms,就是说在sap标准菜单中的操作相应时间小于100ms   
wait time < 10% response time,比较小的wait time,说明dispatcher工作正常,能够及时响应,因此系统整体性能应该良好。   
有一个经验性的参数,就是平均response time在1秒以下,代表着系统有良好的性能,但是需要个例对待。   

  此外还有以下参数:
  
       
  • 平均 roll-in time < 20ms   
  • 平均 roll-wait time < 200ms   
  • 平均 load(and generation) time < 10% response time (50ms)   
  • 平均 database request time < 40% of (response time-wait time)   
  • 平均 cpu time 和 processing time 相当
  
     large roll-wait time 代表着 sap 应用服务器同 GUI 或者外部系统的连接有性能问题。     
large load time 一般是对应的 program,cua 或者screen 缓存偏小      
large database time 则对应着数据库性能问题 (database cpu/memory bottleneck, network work problem,index,buffer,statistics等),也可能是 expensive sql statement.      
large cpu time 可能是 abap 程序性能问题      
processing time 远大于 cpu time 往往代表 cpu 瓶颈,网络问题
    
  SAP内存区域     
Shared Memory: SAP Buffer (Program, Screen, Data Dictionary), Extended Memory, Roll Buffer, Paging Buffer   
Local Memory: Local Roll, Local Page, Heap Memory
  Roll Area(属于local memory), 主要存储user context,比如程序指针,set/get parameters,权限,内表,报表。   
Paging Area(属于local memory),主要存储程序相关数据。比方说extract,Import and Export,call transction之类。   
Roll Buffer和Paging Buffer则是对应Roll area,paging area得shared memory 部分,roll-in过程表示从roll/paging buffer(shared memory)拷贝user context道roll/paging Area(local memory),roll-out恰好相反。   
Roll file和Paging file则是对应Roll buffer和Paging buffer得文件部分(on disk),当Roll buffer和paing buffer不足,则会存储与Roll file和Paging file.   
Extended Memory(属于Shared Memory),存储同Roll area得数据,不过用户进程访问extended memory不同于roll area得拷贝,而是映射.
  Extended Memory采用映射方式的好处在于:使用指针访问成本更低,速度更快,能够更有效的利用内存,降低cpu和硬盘的负载。当然,extended memory需要足够的物理内存来支持,因为它设计的初衷是理应只存在于物理内存。
  
  内存分配顺序
  SAP内存都是通过instance profile参数来设置的,所以下面简单介绍相关内存参数(st02 SAP memory部分的内存参数,这里都以unix平台为基准,windows平台则是采用零内存管理,在内存参数上有着差异)。   
Profile parameter             Comment   
ztta/roll_area                     Roll area per workprocess (total)   
ztta/roll_first                       First amount of roll area used in a dialog WP   
ztta/short_area                  Short area per workprocess   
rdisp/ROLL_SHM               Part of roll file in shared memory   
rdisp/PG_SHM                   Part of paging file in shared memory   
rdisp/PG_LOCAL               Paging buffer per workprocess   
em/initial_size_MB              Initial size of extended memory   
em/blocksize_KB                Size of one extended memory block   
em/address_space_MB      Address space reserved for ext. mem. (NT only)   
ztta/roll_extension              Max. extended mem. per session (external mode)   
abap/heap_area_dia          Max. heap memory for dialog workprocesses   
abap/heap_area_nondia     Max. heap memory for non-dialog workprocesses   
abap/heap_area_total         Max. usable heap memory   
abap/heaplimit                    Workprocess restart limit of heap memory

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-115514-1-1.html 上篇帖子: SAP BI vs. Oracle BI 下篇帖子: SAP收货时自动创建采购订单
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表