Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Function module for sap memory consumption

Former Member
0 Likes
3,620

Hi All,

Is there any standard function module or report which gives all sap memory details occupied by user level?

Like extented memory, roll area , heap , paging memeory

for that currentlly i'm using

call 'ThUsrInfo' id 'OPCODE' field opcode_long_blk_info in a Zfunction but i need a standard one for this.

Regards,

Anuj jain

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,249

Try this monitoring function

/SDF/MON_USER_MEMORY

This gives the required details sorted for each user's handle

10 REPLIES 10
Read only

Former Member
0 Likes
2,250

Try this monitoring function

/SDF/MON_USER_MEMORY

This gives the required details sorted for each user's handle

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
2,249

Check transaction st02 , it calls the report program RSTUNE50. You get details about Roll area , Page area ,Extended memory &

Heap memory. Click the detailed analysis menu and SAP memory Button for more details. If required the click the Current parameters button and copy the names and pass to tableTPFYPROPTY-objname to get the min & Max values.

For user wise details

Goto Sm04 - select user->Menu Goto->Memory, again if you need a session wise split, then do the same from selecting the menu Memory List(Session Details).

For reference:[Monitoring the Memory Management System|http://help.sap.com/saphelp_nw04/helpdata/en/02/96263e538111d1891b0000e8322f96/content.htm]

Read only

Former Member
0 Likes
2,249

Thanks Ncvajja ,

RFC mentioned by you provides all the memory details consumed by user but as i have a specific requirement in which i have provide session level details of a user so that if same user a multiple session then i need also to differentiate them which is not possible by the this FM.

As per my research we can differentiate them on TID(Terminal id) level so is there any fm which provide these inputs with tid also.

@ structure UBLKS contains TID.

Rg,

Anuj

Read only

0 Likes
2,249

Dear Anuj,

Try with the FM TH_USER_LIST.

Read only

Former Member
0 Likes
2,249

TH_USER_LIST nt usefull... as need FM which give memory details(roll area, extended,heap) along with terminal id or some unique value fields.

Rg,

Anuj

Read only

0 Likes
2,249

hi,

How can terminal id differentiate if the same user had done multiple login from the same terminal ? The function provided above has the field TERMINAL & IP ( which can used to differentiate from different terminals ) & the field handle is also unique. For example open 5 sessions and then execute the FM.

Read only

0 Likes
2,249

Try and analyse Tcode /SDF/04 the report generated has terminal ID, user and all the memory details as you wanted....

The name of the report is /sdf/sm04

Hope thats useful...

Edited by: Ncvajja on Feb 6, 2012 1:56 PM

Read only

Former Member
0 Likes
2,249

Terminal ID / Session

The terminal ID is the number of the terminal in the list of all the clients logged on to the dispatcher. The session number is the current external session.

This information is used to determine RFC dependencies in the analysis of RFC connections.

The combination TID/session defines the context belonging to a conversation ID either as a client or as a server. The TID/session is used to determine which RFCs are still coming from this context (client). The TID / session information on the server side is used to check whether this also appears again as a client, and hence is part of an RFC chain that is accessible iteratively.

we check in sap report RSM04000_ALV put a break point on line 1542 and check table USR_BTABL here we will get a unique TID whether user has multiple login .

Regards,

Anuj jain

Read only

Former Member
0 Likes
2,249

any suggestions...

Read only

0 Likes
2,249

I checked the origianl code of RSTUNE50 (ST02).

function module saptune_get_summary_statistic will get consumption information of extended memory.

import parameters: DESTINATION: NONE

export parameters - EXTENDED_MEMORY_USAGE

                              the fields: ALLOCATED/TOTAL.