Runtime Analysis - ABAP, Database, System
Hi All,
The runtime analysis (SE30) of a program shows that the ABAP runtime is 96.1%; Database is 3.7% and system is 0.2% making an overall 100%.
Is it good performance? the ABAP bar is shown in red color.
Can you please explain about this.
Hi,
Yes i feel its good performance, generally if the control is most of the time with the application server, rather than in the database server then it considered good performance.
According to you it is ABAP runtime is 96.1%; Database is 3.7% and system is 0.2%.
We can see major time is in ABAP runtime and only few calls to database. So it is a good performance.
Thanks & Regards,
Navneeth K.
Similar Messages
-
1. Whats runtime analysis in detail
2. whats is sql trace in detial.
3. what is the diff between watch point and break point?
4. what is al21
please tell me these answers of this question.Hi
<b>Whats runtime analysis in detail</b>
Run time analysis transaction SE30 :This transaction gives all the analysis of an ABAP program with respect to the database and the non-database processing.
In Transaction SE30, fill in the transaction name or the program name which needs to be analyzed for performance tuning.
For our case, let this be ZABAP_PERF_TUNING
After giving the required inputs to the program, execute it. After the final output list has been displayed, PRESS the BACK button.
On the original SE30 screen, now click on ANALYZE button.
The percentage across each of the areas ABAP/ Database/System shows the percentage of total time used for those areas and load on these areas while running the program . The lesser the database load faster the program runs.
2<b>. whats is sql trace in detial.</b>
SQL Trace transaction ST05: The trace list has many lines that are not related to the SELECT statement in the ABAP program. This is because the execution of any ABAP program requires additional administrative SQL calls. To restrict the list output, use the filter introducing the trace list.
The trace list contains different SQL statements simultaneously related to the one SELECT statement in the ABAP program. This is because the R/3 Database Interface - a sophisticated component of the R/3 Application Server - maps every Open SQL statement to one or a series of physical database calls and brings it to execution. This mapping, crucial to R/3s performance, depends on the particular call and database system. For example, the SELECT-ENDSELECT loop on a particular database table of the ABAP program would be mapped to a sequence PREPARE-OPEN-FETCH of physical calls in an Oracle environment.
The WHERE clause in the trace list's SQL statement is different from the WHERE clause in the ABAP statement. This is because in an R/3 system, a client is a self-contained unit with separate master records and its own set of table data (in commercial, organizational, and technical terms). With ABAP, every Open SQL statement automatically executes within the correct client environment. For this reason, a condition with the actual client code is added to every WHERE clause if a client field is a component of the searched table.
To see a statement's execution plan, just position the cursor on the PREPARE statement and choose Explain SQL. A detailed explanation of the execution plan depends on the database system in use.
Starting the Trace:
To analyze a trace file, do the following:
Choose the menu path Test  Performance Trace in the ABAP Workbench or go to Transaction ST05. The initial screen of the test tool appears. In the lower part of the screen, the status of the Performance Trace is displayed. This provides you with information as to whether any of the Performance Traces are switched on and the users for which they are enabled. It also tells you which user has switched the trace on.
Using the selection buttons provided, set which trace functions you wish to have switched on (SWL trace, enqueue trace, RFC trace, table buffer trace).
If you want to switch on the trace under your user name, choose Trace on. If you want to pass on values for one or several filter criteria, choose Trace with Filter. Typical filter criteria are: the name of the user, transaction name, process name, and program name.
Now run the program to be analyzed.
Stopping the Trace:
To deactivate the trace:
Choose Test Performance Trace in the ABAP Workbench. The initial screen of the test tool appears. It contains a status line displaying the traces that are active, the users for whom they are active, and the user who activated them.
Select the trace functions that you want to switch off.
Choose Deactivate Trace. If you started the trace yourself, you can now switch it off immediately. If the performance trace was started by a different user, a confirmation prompt appears before deactivation-
Analyzing a Sample trace data:
PREPARE: Prepares the OPEN statement for use and determines the access method.
OPEN: Opens the cursor and specifies the selection result by filling the selection fields with concrete values.
FETCH: Moves the cursor through the dataset created by the OPEN operation. The array size displayed beside the fetch data means that the system can transfer a maximum package size of 392 records at one time into the buffered area.
/people/siegfried.boes/blog/2007/09/05/the-sql-trace-st05-150-quick-and-easy
<b>3. what is the diff between watch point and break point?</b>
<b>Breakpoints</b>
Instead of starting an ABAP program directly in the Debugger, you can also debug a program by creating one or more breakpoints in the program. A breakpoint is a signal at a particular point in the program that tells the ABAP runtime processor to interrupt processing and start the Debugger. The program runs normally until the breakpoint is reached.
There is also a special kind of breakpoint called a watchpoint. When you use watchpoints, the Debugger is not activated until the contents of a particular field change. For further information, refer to Watchpoints.
<b>Watchpoints</b>
Like a breakpoint, a watchpoint is an indicator in a program that tells the ABAP runtime processor to interrupt the program at a particular point. Unlike breakpoints, however, watchpoints are not activated until the contents of a specified field change. Watchpoints, like dynamic breakpoints, are user-specific, and so do not affect other users running the same program. You can only define watchpoints in the Debugger.
<b>4. what is al21</b>
Performance Analyzie(al21)
<b>Reward if usefull</b> -
Program not in Library -- In ABAP Runtime Analysis SE30.. Plz Guide me guys
Dear all,
I have to execute one report program in SE30 ABAP Runtime Analysis tool.
So I have entered my program name in the SE30 but I have got 1 error " Program ( pgm name ) not in Library ".
Guys plz guide me on this asap.
Edited by: PI User on Nov 26, 2010 11:14 AM
Moderator message: too basic, too much SMS speak, too much "asap", thread locked, points removed.
[Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
Edited by: Thomas Zloch on Nov 26, 2010 12:33 PMHi
The error message is clear: the program you're trying to test by SM30 is not SAP (your SAP system of course)
Now try to check if you can see that program by SE38, but if you think the program is in SAP, prehaps you're running SM30 in another system:
For example:
the program was created in development system and you run SM30 in quality and that program hasn't been transported yet: so the program is in development but not in quality.
Max -
Hello,
We have very poor performance on your ERP ECC 6.0 EHP 3 system. We are using MaxDB 7.7.
We have done a abap runtime analysis (SE30) on transaction code FD03.
The result is the following:
http://img13.imageshack.us/img13/659/fd03.png
How can we solve this? And why is the system and abap execution time equal to zero?
Regards,
VrmrHi,
Please perform SQL trace using ST05. Look at the action in SM50 where it is taking more time.
Check the CPU/MEMORY bottleneck issue at DB Server using ST02 and ST06.
Also refer the following useful links to get more info.
[FAQ's, intros and memorable discussions in the Performance and Tuning Forum|FAQ's, intros and memorable discussions in the Performance and Tuning Forum]
[SAP ABAP Runtime Analysis - SE30|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30864e70-77b9-2c10-449b-e0e584f73e8c?quicklink=index&overridelayout=true]
[SE30 -Measurement Overview|http://help.sap.com/saphelp_nw2004s/helpdata/en/c6/617d2ae68c11d2b2ab080009b43351/frameset.htm]
Regards,
Bhavik G. Shroff -
Database tab is disable in Web As ABAP technical system
Hi All,
When i am creating abap technical system in portal, 'database' tab is disable.
Anyone can suggest ?
How to push system information from back end using SLD?
Thanks & Regards,
VijayHi Sriram,
We maintained all the host entries and sap gateway services.
Still getting the probelm.
SLD DS Start Program
0: vehpqty_VRT_00 : Execute program: _SLD_APPL_SERV
0: vehpqty_VRT_00 : Execute program: _SLD_BCSYS
0: vehpqty_VRT_00 : Execute program: _SLD_CLIENT
0: vehpqty_VRT_00 : Execute program: _SLD_COMPSYS
0: vehpqty_VRT_00 : Execute program: _SLD_DBSYS
0: vehpqty_VRT_00 : Execute program: _SLD_GWSRV
0: vehpqty_VRT_00 : Execute program: _SLD_HTTPSERV
0: vehpqty_VRT_00 : Execute program: _SLD_INSTPRD
0: vehpqty_VRT_00 : Execute program: _SLD_INSTSC
0: vehpqty_VRT_00 : Execute program: _SLD_INSTSP
0: vehpqty_VRT_00 : Execute program: _SLD_IPSERV
0: vehpqty_VRT_00 : Execute program: _SLD_LIVECACHE
0: vehpqty_VRT_00 : Execute program: _SLD_MSGSRV
0: vehpqty_VRT_00 : Execute program: _SLD_RCC
0: vehpqty_VRT_00 : Execute program: _SLD_RFC
0: vehpqty_VRT_00 : Collection of SLD data finished
0: vehpqty_VRT_00 : Data collected successfully
0: vehpqty_VRT_00 : RFC data prepared
0: vehpqty_VRT_00 : Used RFC destination: SLD_NUC
0: vehpqty_VRT_00 : RFC call failed: Error when opening an RFC connection
0: vehpqty_VRT_00 : Existing periodic jobs removed.
0: vehpqty_VRT_00 : Program scheduled: 20140710 021500
1: vehpqty_VRT_00 : Event-controlled job already exists; scheduling not necessary
Thanks and Regards,
Vijay -
Can we perform runtime analysis(SE30) on Abap Webdynpro component..?
hi,
Greetings!!!
Can we perform runtime analysis(SE30) on Abap Webdynpro component..?
Thanks in Advacne.
Regards,
Kranthi.for sure !
have a look here [https://wiki.sdn.sap.com/wiki/display/WDABAP/Performance%20Tuning%20for%20SAP%20%20Web%20Dynpro%20ABAP|https://wiki.sdn.sap.com/wiki/display/WDABAP/Performance%20Tuning%20for%20SAP%20%20Web%20Dynpro%20ABAP] -
Comparatively analysis of legacy database system ?
please help me by explain this this is our next quiz can any 1 give detail description to this topic :O :)
Hello,
A comparative analysis of legacy database systems examines the essential nature of legacy database management, and discusses
the validity of parallels which appear to exist between them. The characteristics of applications, functions, representations, utilizations, and research are used as a basis for conducting comparisons. Through these comparisons, the strengths and weaknesses
of each field are evaluated, and significant similarities and differences are identified.
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com -
Hi BW Gurus,
i have my query based on a Virtual cube for BCS. I ran the query and its taking 14 minutes to give me the result. From RSRT i got the name of the program which run in the backend to generate the report. I took that program name and put it in SE 30 Runtime analysis.
<b>ABAP</b> - 26,100 (microseconds)--- 71.4% (I have some user exit variables).
<b>DATABASE</b> - 4678 (microseconds)----12.8% of total runtime
<b>System</b> 5799 (microseconds)--15.8% of total runtime
but the problem is I am using the same user exit variables in other queries and their response time is 3 seconds to 4seconds.
can somebody help in where is the exact problem
Q2) How to check that which SQL statements or database table is taking more time. where exactly we must put the breakpoint....
i am not at all good in ABAP.
Thanks will assign full pointsHi A.H.P,
thanks for the reply ...using ST05 do i have to first execute the query and then activate the trace or I can do it any time and later deactivate it.
Also the exit variable is that whatever the period user enters it will give the starting period of that Quarter. Like if user gives 005.2007 the data will be calculated for
period 004 (since its the starting point of the Quarter 2 [4,5,6] ) and period 005.
Yes it is derived from the other variable so the range I give is this
custom exit.. to... 0GMTO(which is fiscal year/period).
Can you please give your inputs Will assign full points -
What is difference bet runtime analysis & performance analysis..?
Hi,
I am Siva Reddy,
I am new to ABAP,
I have a doubt,
Please clarify my doubt..
what is difference bet runtime analysis & performance analysis..?
Points will be given to perfect answers..
Regards,
Siva Reddy.Hi Siva!
This runtime analysis tools allows the ABAP/4 programmer to trace the tables used by the SAP dialog/reports programs. In the Analyze button, you can see four more buttons like:-
Hit List
Displays the execution time of each statement in the program.
Tables
Displays the tables accessed during run time.
Group hit list
Displays the execution time of all the statements and grouping them based on the type of command. e.g. performs, SQL and internal tables used.
Hirarchy
Displays the execution time of each statement in the actual order in which were executed. Uses indentation to indicate the level of nesting of statements within subroutines.
Any tables use by the transaction or program can be easily trace with the runtime analysis tools.
Go to transaction SE30
Type in the transaction code you want to analyze
4.6x
In the Restriction section: select the TMP -> Temporary variant
Click the Change button
Click the Duratn/type
Select None for Aggregation
Save the variant and execute again
After finishing the process, click back to SE30
Use F3 to move back to the initial screen of SE30
Click the Analyze Button
Click Goto -> Object-centered hit list -> Database tables
3.0x
Click Execute
After finishing the process, click back to SE30
Click the Analyze Button
Click the Table Button
After retrieving the table names, you can check the raw data with transaction SE16 - Data Browser or SE11 - Dictionary.
For example, if you want to display the data for MSEG - Material Document table
Transaction SE16
Type in MSEG for Table name and click execute.
Data Browser will display the default selection for you to display data. If you did not change the default and click execute the data browser will display the first 500 records.
Click Settings to change the List formats, User parameters and Fields for selection.
In 4.6x, you can use SE16N.
Transaction SE11 or SE12 (4.6x)
Type in MSEG for Object name and click the Display button.
Click Utilities -> Table contents for the default selection screen. If you did not change the default and click execute, the Dictionary will display the first 500 record.
Click Settings to change the List formats, User parameters and Fields for selection.
Transaction SE17
Type in the Table Name, put in the Selection value, put a 'X' in the Output column to display the data field and put in the Sort number from 01..99 (if you want to sort).
ools provided for Performance Analysis
Following are the different tools provided by SAP for performance analysis of an ABAP object
1. Run time analysis transaction SE30
This transaction gives all the analysis of an ABAP program with respect to the database and the non-database processing.
2. SQL Trace transaction ST05
The trace list has many lines that are not related to the SELECT statement in the ABAP program. This is because the execution of any ABAP program requires additional administrative SQL calls. To restrict the list output, use the filter introducing the trace list.
The trace list contains different SQL statements simultaneously related to the one SELECT statement in the ABAP program. This is because the R/3 Database Interface - a sophisticated component of the R/3 Application Server - maps every Open SQL statement to one or a series of physical database calls and brings it to execution. This mapping, crucial to R/3s performance, depends on the particular call and database system. For example, the SELECT-ENDSELECT loop on the SPFLI table in our test program is mapped to a sequence PREPARE-OPEN-FETCH of physical calls in an Oracle environment.
The WHERE clause in the trace list's SQL statement is different from the WHERE clause in the ABAP statement. This is because in an R/3 system, a client is a self-contained unit with separate master records and its own set of table data (in commercial, organizational, and technical terms). With ABAP, every Open SQL statement automatically executes within the correct client environment. For this reason, a condition with the actual client code is added to every WHERE clause if a client field is a component of the searched table.
To see a statement's execution plan, just position the cursor on the PREPARE statement and choose Explain SQL. A detailed explanation of the execution plan depends on the database system in use.
null -
Analysing details of SQL trace and runtime analysis for a report.
Hi,
I am trying to tune the performance of a Z ABAP report for target group export. A brief overview of what is done in the report is the retrieval of BP details present in the Target group including BP general, address, marketing attributes, person responsible and contact person details. As the target groups can be quite huge (around 6000 BPs), the report gives performance issues. I want to understand on how to analyse the details which I obtained from the run time analysis and SQL trace and on how to take it forward.
Any inputs in this regard would be helpful.
Thanks in advance,
AnushreeIn Runtime analysis Look for
ABAP - In your ABAP code
DATABASE - It shows the performance of your SELECT statements in your program.
Just check how much % it is showing for both.
Check for following in your code.
1) Avoid SELECT *
2) Clear internal tables values which are not required at the ending of program, as it saves memory
etc. -
Performance my Report is 57% is ABAP , 42 % System & 1% for DB
Performance my Report is 57% is ABAP , 42 % System & 1% for DB..it it OK or will there be any performance issues. Please let me know
ABAP Execution time is <b>18,602</b> micro seconds
DB <b> 256</b>
System <b>13,899</b>
<b> HITLIST</b>----
Number Gross time (in microseconds) = Net (microseconds) Gross time in % Net time in % Call Program Name Type Display filter group
1 32757 0 100.0 0.0 Runtime analysis Sys.
1 32725 4368 99.9 13.3 Submit Report Z_BALRAM_TEST1 SAPMS38T
1 26691 776 81.5 2.4 Program Z_BALRAM_TEST1
3 26554 2088 81.1 6.4 Dynpro Entry Z_BALRAM_TEST1
1 26383 850 80.5 2.6 PBO Dynpro SAPMSSY0 SAPMSSY0 Sys.
1 423 50 1.3 0.2 Call Func. DOKU_OBJECT_EXIST RSDBRUNT
1 408 10 1.2 0.0 Call Func. AC_SYSTEM_FLUSH SAPFGUICNTL
1 385 37 1.2 0.1 Call Func. SYSTEM_COMBO_OUTPUT SAPMSSYD
1 303 21 0.9 0.1 Call Func. VRM_QUEUE_FLUSH SAPLSCNT
1 140 97 0.4 0.3 Load Dynpro SAPMSSY0 1000 Z_BALRAM_TEST1 Sys. -
Hi,
Need some help on how to find the Runtime Analysis for a method in Class, as i am getting some performance issues with the statements in the method.
Please let me know ASAP about this Runtime Analysis for a method in a classIn Runtime analysis Look for
ABAP - In your ABAP code
DATABASE - It shows the performance of your SELECT statements in your program.
Just check how much % it is showing for both.
Check for following in your code.
1) Avoid SELECT *
2) Clear internal tables values which are not required at the ending of program, as it saves memory
etc. -
hi,
What is the use of SE30 - Runtime Analysis Tool?
thnks.HI,
This runtime analysis tools allows the ABAP/4 programmer to trace the tables used by the SAP dialog/reports programs. In the Analyze button, you can see four more buttons like:-
Hit List
Displays the execution time of each statement in the program.
Tables
Displays the tables accessed during run time.
Group hit list
Displays the execution time of all the statements and grouping them based on the type of command. e.g. performs, SQL and internal tables used.
Hirarchy
Displays the execution time of each statement in the actual order in which were executed. Uses indentation to indicate the level of nesting of statements within subroutines.
Any tables use by the transaction or program can be easily trace with the runtime analysis tools.
Go to transaction SE30
Type in the transaction code you want to analyze
4.6x
In the Restriction section: select the TMP -> Temporary variant
Click the Change button
Click the Duratn/type
Select None for Aggregation
Save the variant and execute again
After finishing the process, click back to SE30
Use F3 to move back to the initial screen of SE30
Click the Analyze Button
Click Goto -> Object-centered hit list -> Database tables
3.0x
Click Execute
After finishing the process, click back to SE30
Click the Analyze Button
Click the Table Button
After retrieving the table names, you can check the raw data with transaction SE16 - Data Browser or SE11 - Dictionary.
For example, if you want to display the data for MSEG - Material Document table
Transaction SE16
Type in MSEG for Table name and click execute.
Data Browser will display the default selection for you to display data. If you did not change the default and click execute the data browser will display the first 500 records.
Click Settings to change the List formats, User parameters and Fields for selection.
In 4.6x, you can use SE16N.
Transaction SE11 or SE12 (4.6x)
Type in MSEG for Object name and click the Display button.
Click Utilities -> Table contents for the default selection screen. If you did not change the default and click execute, the Dictionary will display the first 500 record.
Click Settings to change the List formats, User parameters and Fields for selection.
Transaction SE17
Type in the Table Name, put in the Selection value, put a 'X' in the Output column to display the data field and put in the Sort number from 01..99 (if you want to sort).
Cheers,
Chandra Sekhar. -
How to reduse ABAP and Database Execution Time in Runtime Analysis to increae Performance Issue
Hi,
you can calculate runtime like this:
TABLES: MARA.
Messungs von Laufzeiten zwischen Anweisungen.
DATA: UZEIT LIKE SY-UZEIT.
DATA: DATUM LIKE SY-DATUM.
DATA: MMSEC TYPE I.
DATA: LF_TIMESTAMP TYPE TIMESTAMP.
Beim 1. Aufruf von get rfun time ist mmsec 0.
GET RUN TIME FIELD MMSEC.
GET TIME STAMP FIELD LF_TIMESTAMP.
CONVERT TIME STAMP LF_TIMESTAMP
TIME ZONE SY-ZONLO
INTO
DATE DATUM
TIME UZEIT.
WRITE: / DATUM, UZEIT, MMSEC.
SELECT * FROM MARA.
ENDSELECT.
GET RUN TIME FIELD MMSEC.
GET TIME STAMP FIELD LF_TIMESTAMP.
CONVERT TIME STAMP LF_TIMESTAMP
TIME ZONE SY-ZONLO
INTO
DATE DATUM
TIME UZEIT.
WRITE: / DATUM, UZEIT, MMSEC.
Here you can get performance-examples:
SE38->ENVIRONMENT->EXAMPLES->PERFORMANCE EXAMPLES
Hope it helps.
Regards, Dieter -
shankar
Please go this below Explaination .
<b>SE30 - Runtime Analysis Tool</b>
This runtime analysis tools allows the ABAP/4 programmer to trace the tables used by the SAP dialog/reports programs. In the Analyze button, you can see four more buttons like:-
Hit List
Displays the execution time of each statement in the program.
Tables
Displays the tables accessed during run time.
Group hit list
Displays the execution time of all the statements and grouping them based on the type of command. e.g. performs, SQL and internal tables used.
Hirarchy
Displays the execution time of each statement in the actual order in which were executed. Uses indentation to indicate the level of nesting of statements within subroutines.
Any tables use by the transaction or program can be easily trace with the runtime analysis tools.
<b>Go to transaction SE30</b>
Type in the transaction code you want to analyze
<b>4.6x</b>
In the Restriction section: select the TMP -> Temporary variant
Click the Change button
Click the Duratn/type
Select None for Aggregation
Save the variant and execute again
After finishing the process, click back to SE30
Use F3 to move back to the initial screen of SE30
Click the Analyze Button
Click Goto -> Object-centered hit list -> Database tables
<b>3.0x</b>
Click Execute
After finishing the process, click back to SE30
Click the Analyze Button
Click the Table Button
After retrieving the table names, you can check the raw data with transaction SE16 - Data Browser or SE11 - Dictionary.
For example, if you want to display the data for MSEG - Material Document table
Transaction SE16
Type in MSEG for Table name and click execute.
Data Browser will display the default selection for you to display data. If you did not change the default and click execute the data browser will display the first 500 records.
Click Settings to change the List formats, User parameters and Fields for selection.
In 4.6x, you can use SE16N.
Transaction SE11 or SE12 (4.6x)
Type in MSEG for Object name and click the Display button.
Click Utilities -> Table contents for the default selection screen. If you did not change the default and click execute, the Dictionary will display the first 500 record.
Click Settings to change the List formats, User parameters and Fields for selection.
Transaction SE17
Type in the Table Name, put in the Selection value, put a 'X' in the Output column to display the data field and put in the Sort number from 01..99 (if you want to sort).
<b>if the above is not clear go through this link</b>
<a href="http://www.sap-basis-abap.com/sapta002.htm">http://www.sap-basis-abap.com/sapta002.htm</a>
Reward points if it is usefull ..
Girish
Maybe you are looking for
-
Transfer Mail Rules from Leopard to Mountain Lion
I have succesfully moved my mail, mailboxes and folders from my old Power PC to my new iMac by moving my Library>Mail folder from one to the other. The only thing that didn't carry over were my Mail Rules. Is there some other file I'm missing? Thanks
-
Problem with IE8 popup blocker and Windowless mode
My team is having popup blocker issue, which is crippling our system where a large range of users are now complaining that their links or buttons will not open in IE7 or IE8 and results in the pop-up blocker message. Our Flash application's embed cod
-
Before updating the iOS to 8.2, I had video files and music files on my iPad that I could see listed in playlists in the Music app or in the "Movie" list on the video app. After the update, I'm not able to see these files to play them. I can see th
-
Im working on Dreamweaver MX The code in my CSS sheetis: border: 1px solid #669999; background-attachment: scroll; background-image: url(/assets/pictures/lama_border1.gif); background-repeat: no-repeat; background-position: left top; There's grey squ
-
Hi, Quick Question that i can't seem to get. Is it possible to batch rename original files in Aperture (Master). I am hoping to move to Aperture from ACR and can't seem to see how to batch rename originals. In Bridge I would edit then rename and hope