Documente Academic
Documente Profesional
Documente Cultură
Management (an
Overview)
SAP Memory Management
Reffered :
Data which is generated by transaction process
Variables, Internal table & screen list
New sesion = new user context
Data is stored independently in different memory areas
Stored in SAP roll memory, SAP extended memory, & SAP Heap Memory
Pres.
server SAP Application Sever DB Server
Table
buffer
Program
SAP Extended
Memory buffer Databas
DDIC
e
SAP
Buffer
GUI
buffer
Dispatcher
Queue
SAP Roll
Memory
Work Process DB Process
dispatche
- Roll in : copying user context from shared roll area to local roll area
- Roll Out : copying user context from local roll area to shared roll area
Roll buffer (shared memory)
Roll area Roll area
(local) (local)
copy copy
Work
Work
Process2
Process1 Roll file (disk)
rdisp/roll_SHM
ztta/roll_first Roll Buffer (shared)
Roll Roll In /
(local) Roll Out
ztta/roll_area
Roll file rdisp/roll_MAXFS
SAP Roll area parameters
em/initial_size_MB
ztta/roll_extension
SAP Extended Memory main parameters :
em/initial_size_MB : size of SAP extended memory allocated when
the SAP instance starts up
em/blocksize_KB : size block which split SAP Extended Memory
ztta/roll_extension : maximum size of a user context in the SAP Extended
memory
SAP Heap Memory
Area which allocated variably as local memory as required.
Released after a transaction is complete.
abap/heap_area_(non)dia
Heap
Memory
(local)
abap/heap_area_total
Sequence in which memory is allocated (dialog work process) :
User Context
1 2 3 4
User-
Independent
Data Roll memory to Roll memory to Roll memory to Roll memory to
zttz/roll_first zttz/roll_extension zttz/roll_area abap/heap_area_dia
User Context
1 2 3
User-
Independent
Data Roll memory to Roll memory to Roll memory to
zttz/roll_area abap/heap_area_dia zttz/roll_extension
Extended Memory
SAP paging Local Local Local
(User Context)
buffer
memory memory memory
1:1
1:n
SAP Roll File
Work Work Work
SAP Paging File
Process Process Process
Configuring & Monitoring SAP Memory Areas
Main Objective :
Performance
Stability
em/initial_size_MB abap/heap_area_(non_)dia
Address Space
SAP Work
Process
Address Space Restriction (Windows)
em/initial_size_MB
em/address_space_MB abap/heap_area_(non_)dia
Address Space
SAP Work
Process
Assistance With Troubleshooting