关于SAP SM66进程状态显示Priv Mode

当进程显示为Priv Mode时,基本表明该进程已进入僵死状态,将会持续等待系统资源空闲后才能继续执行或者根本无法正常执行下去了。

Priv Mode不仅浪费用户时间、降低了系统可用度,同时也可能造成数据丢失,总之对于Basis来说是一个需要尽快解决的问题。

如果系统出现大量Priv Mode,可从组登录是否设计合理(包括用户是否都设置了组登录)、单一进程资源分配是否合理、超时时间是否设计合理、程序代码和SQL语句是不是应该考虑优化、是不是要增加系统资源多方面进行考虑。

以下是关于Priv Mode的一些解释,对于分析和解决Priv Mode有帮助,关于SAP系统性能优化可以做的一些动作可参考 SAP系统慢的一些举措

PRIV Mode: If a dialog work process has used up the roll area assigned to it and the extended memory, private memory is assigned to the work process. The work process goes into PRIV mode (private).

Why Work Process goes in Priv Mode

A work process goes into PRIV mode, if the particular open transaction process has taken up all the memory in the extended memory

(upto its quota- define by parameter ZTTZ/roll_extension), roll area memory in work process (defined by parameter ZTTA/roll_area) and then finally it starts taking up memory from Heap memory. When a work process starts using Heap memory, it goes into PRIV mode.

No work process multiplexing 

Once a work process enters PRIV mode, work process multiplexing is no more possible for that open transaction.
This is because once the WP goes into PRIV mode, it is not available to any other transactions and we only have a limited number of work processes.

How to prevent dialog work process to enter in Priv Mode

Please make sure the parameters below are defined in RZ10 instance profile:

rdisp/max_priv_time – Used to define the maximum time that a work process can remain in PRIV mode. (After this the work processes is terminated and restarted). This is reasonable because beyond the time limit set, it is imperative to assume that the program using the work process is in efficient. (in case a program really needs that much time, it needs to be scheduled as a background job).

rdisp/wppriv_max_no– This parameter defines the maximum number of work processes that can be in PRIV mode. Very useful.

ABAP/heaplimit – Make sure that a parameter is defined. This ensures that if a program eats up a certain amount of heap memory, the work process being used can be terminated.

And finally please do check if your extended memory allocation is not big enough. the parameter em/initial_size_mb defines the fixed size of extended memory. Increasing this size only if you find that a lot of processes are frequently going into PRIV mode.

本文作者: GavinDong

版权属于: GavinDong博客

文章链接: https://www.gavindong.com/5717.html

如果使用过程中遇到问题,可 **点击此处** 交流沟通。

版权所有,转载时必须以链接形式注明作者和原始出处及本声明。

email