Pages

Friday, October 22, 2021

SAP Memory Management


a. Whenever user session is allocated , dialog work process normally allocates Extended Memory (EM) and once quota of EM is exhausted then its allocates PRIV memory (HEAP).

b. Where as in case of non-dialog work process PRIV memory (HEAP) has been allocated first and then EM.

c. Memory management in SAP is a mechanism to restrict the individual session from consuming whole system memory


Extended memory :

  1. Dialog Work Process

  • Due to frequent content switch is happening , which is possible is EM only.
  • EM will be available for dialog till maximum allocated memory is exhausted
  • Limit can be set with parameter ztta/roll_extension_dia

     2. Non-dialog Work process

  • Once PRIV memory is exhausted , EM will allocated.
  • If EM is also exhausted for the non-dialog work process, then ABAP dump will be created.
  • Limit can be set with parameter ztta/roll_extension_nondia.


Heap Memory:

      1. Dialog Work process 

  • It can only be allocated once EM memory quota is exhausted.
  • ABAP dump will be generated once PRIV memory area has been exhausted.
  • Limit can be set with parameter abap/heap_area_dia

      2. Non- dialog Work Process

  • No frequent context switching happens .
  • Heap memory is a local memory assigned for the Work process in SAP.
  • Quota can be defined with parameter  abap/heap_area_nondia.


Exception:

If  EM or PRIV memory has been reached to its assigned quote before, total amount of heap memory abap/heap_area_total or Extended memory em/initial_size_MB then also extended memory(non-dialog WP) and PRIV memory (dialog WP) will be allocated accordingly.




Wednesday, October 13, 2021

Registry or SAP_DBTech information is available, but software is not complete

Problem :

SWPM shows error when installing Content Server

Error :

An error occurred while processing option Generic Options > SAP Content Server > SAP Content Server and SAP Cache Server

(Last error reported by the step: The system is inconsistent. Registry or SAP_DBTech information is available, but software is not complete).

In "sapinst.log" file, the error is like:

ERROR 2021-10-07 14:06:29.201 (xxx\Administrator) id=dbmodada.systeminconsistent errno=MDB-07057 The system is inconsistent.

Registry or SAP_DBTech information is available, but software is not complete


Solution:

Solution is suitable for that when you want to uninstall old MaxDB and then, install a new MAXDB Instance

Windows -

1. Uninstall MaxDB as following note.

2. Delete C:\sapdb directory

3. Double check if OS registry key"SAP DBTEch"  is deleted. If it isn't, delete it.

HKEY_LOCAL_MACHINE > SOFTWARE > SAP >SAP DBTEch

4. Reboot OS.

5. Try again with the MaxDB installation.

Linux -

1. Uninstall MaxDB as following note.

2. Rename the directories

/usr/spool/sql

/etc/opt/sdb

3. Reboot OS.

4. Try again with the MaxDB installation.