LinkedIn Google+

SAP Memory settings

Your SAP system is generating lot of errors related to memory settings, it is almost impossible to work in SAP system and users are getting dumps like:

SYSTEM_NO_TASK_STORAGE, DBIF_REPO_NO_MEMORY, MEM_ALLOC_FAILED, EXSORT_NOT_ENOUGH_MEMORY, DBIF_RSQL_NO_MEMORY

Users are kicked off from the system, with strange messages like:

WP# was disconnected, internal memory error, etc.

And in the processes trace logs you can see messages like:

Internal memory required for database access is not available, not enough free space, etc.

In these kind of situations forums, sdn, sap notes, etc., refers you to check SAP parameters, Data Base parameters, OS kernel parameters, swap configuration, ulimits for ‘<sid>adm’, etc., but after you check the SAP system, BD and OS everything seems to be ok.

In some cases SAP system doesn’t run with the OS limits were set to ‘<sid>adm’ user. To solve this problem you have to modify the file:

‘/usr/sap/sapservices’

When you check the limits of the user ‘<sid>adm’ everything seems to be ok:

server:sssadm 1> ulimit -a

time(seconds)        unlimited

file(blocks)         unlimited

data(kbytes)         unlimited

stack(kbytes)        unlimited

memory(kbytes)       unlimited

coredump(blocks)     2097151

nofiles(descriptors) 32000

threads(per process) unlimited

processes(per user)  unlimited

Check if the SAP system is running with these values.

sapcontrol –nr <SYS-NR> -function OSExecute “/bin/ksh ulimit –a” 0 0

server:sssadm 10> sapcontrol -nr 02 -function OSExecute "/bin/ksh ulimit -a" 0 0
 
15.10.2015 18:57:12
OSExecute
OK
exitcode, pid, lines
0, 16908420
time(seconds)        unlimited
file(blocks)         2097151
data(kbytes)         131072
stack(kbytes)        32768
memory(kbytes)       32768
coredump(blocks)     2097151
nofiles(descriptors) 2000
threads(per process) unlimited
processes(per user)  unlimited

As you can see, the configuration for SAP system is wrong, this is the root cause of your problem! According to the SAP notes 1827960 and 1437105 you have to add the limits in the file:

‘/usr/sap/sapservices format: limit.datasize=<value>’ etc.

server (root) /usr/sap->cat sapservices
#!/bin/sh
LIBPATH=/usr/sap/SSS/ASCS12/exe:$LIBPATH; export LIBPATH; /usr/sap/SSS/ASCS12/exe/sapstartsrv pf=/usr/sap/SSS/SYS/profile/START_ASCS12_hanaas01intg -D -u sssadm
LIBPATH=/usr/sap/SSS/DVEBMGS02/exe:$LIBPATH; export LIBPATH; /usr/sap/SSS/DVEBMGS02/exe/sapstartsrv pf=/usr/sap/SSS/SYS/profile/START_DVEBMGS02_hanaas01intg -D -u sssadm
limit.descriptors=unlimited
limit.stacksize=unlimited
limit.datasize=unlimited

Now stop SAP, kill the sapstartsrv processes and start SAP system, finally check again:

server:sssadm 9> sapcontrol -nr 02 -function OSExecute "/bin/ksh ulimit -a" 0 0

15.10.2015 19:06:39
OSExecute
OK
exitcode, pid, lines
0, 16646144
time(seconds)        unlimited
file(blocks)         unlimited
data(kbytes)         unlimited
stack(kbytes)        unlimited
memory(kbytes)       unlimited
coredump(blocks)     2097151
nofiles(descriptors) 32000
threads(per process) unlimited
processes(per user)  unlimited

This will solve all your problems.

For more information check SAP notes 1563583, 1827960 and 1437105.

Artículo anterior

¿QUÉ SIGNIFICA COMPORTARSE COMO UN EMPRENDEDOR?

Artículo siguiente

¿CUÁLES SON LOS RETOS DE UN PROYECTO DEL BIG DATA?

Sin Comentarios

Responder

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *