application engine tracing

16
Application Engine Tracing

Upload: nagasankar

Post on 26-Dec-2015

7 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Application Engine Tracing

Application Engine Tracing

Page 2: Application Engine Tracing

Agenda

• Understand Application Engine Tracing• Enable Application Engine Tracing

Page 3: Application Engine Tracing

Different ways to trace an Application Engine1. Process Scheduler2. Command Prompt3. Application Designer (2-Tier mode)

Page 4: Application Engine Tracing

Command Line options

• The command line option is available for Microsoft Windows NT and UNIX, but it is not available when calling Application Engine programs from PeopleCode.

• To enable tracing from the command line, specify the −TRACE option within the command line that you submit to PSAE.EXE. For example,

n:\pt840\bin\client\winx86\psae.exe -CT MICROSFT -CD PT800GES -CO PTDMO? -CP PTDMO -R PT8GES -AI AETESTPROG −I 45 -TRACE 2

Page 5: Application Engine Tracing

Command Line Options

-CTSpecify the type of database to which you are connecting. Values are ORACLE, MICROSFT, SYBASE, INFORMIX, DB2UNIX, and DB2ODBC.

-CSRequired for Sybase and Informix. For platforms that require a server name as part of sign-on, enter the appropriate server name. This affects Sybase, Informix, and Microsoft SQL Server. However, for Microsoft SQL Server, this option is valid but not required.

-CDEnter the name of the database to which the program will connect.

Page 6: Application Engine Tracing

-COEnter the user ID of the person who is running the program.

-CPEnter the password associated with the specified user ID.

-REnter the run control ID to use for this run of the program.

-AISpecify the Application Engine program to run.

Page 7: Application Engine Tracing

-IRequired for restart. Enter the process instance for the program run. The default is 0, which means PeopleSoft Application Engine uses the next available process instance.

-DEBUG This parameter controls the Debug utility. Enter Y to indicate that you want the program to run in debugging mode, or enter N to indicate that you do not.

-DRThis parameter controls restart disabling. Enter Y to disable restart, or enter N to enable restart.

Page 8: Application Engine Tracing

-TRACETo enable tracing from the command line, enter this parameter and a specific trace value. The value you enter is the sum of the specific traces that you want to enable. Traces and values are:

• 0: Disables tracing. • 1: Initiates the Application Engine step trace. • 2: Initiates the Application Engine SQL trace. • 4: Initiates the trace for dedicated temporary table

allocation to an Application Engine trace (AET) file. You can trace how the system allocates, locks, and releases temporary tables during program runs.

Page 9: Application Engine Tracing

• 128: Initiates the Application Engine timings file trace, which is similar to the COBOL timings trace.

• 256: Includes the PeopleCode detail timings in the 128 trace. • 1024: Initiates the Application Engine timings table trace, which

stores the results in database tables. • 2048: Initiates the database optimizer explain, writing the results

to the trace file. This option is supported only on Oracle, Informix, and Microsoft SQL Server.

• 4096: Initiates the database optimizer explain, storing the results in the Explain Plan table of the current database. This option is supported only on Oracle, DB2, and Microsoft SQL Server. For example, to enable the 1, 2, and 128 traces, you would enter 131,the sum of 1, 2, and 128. To indicate that you do not want any traces, enter 0. If you don’t explicitly enter 0,PeopleSoft Application Engine uses the trace value set in PeopleSoft Configuration Manager.

Page 10: Application Engine Tracing

-DBFLAGSTo disable %UpdateStats meta-SQL construct, enter 1.

-TOOLSTRACESQLEnable the SQL trace.

-TOOLSTRACEPCEnable the PeopleCode trace.

Page 11: Application Engine Tracing

Through Process Scheduler

People Tools - Process Scheduler - Processes

Page 12: Application Engine Tracing

Select the Application Engine Program. Go To Overrides Tab

Page 13: Application Engine Tracing

Go to the specific Run Control Page and run the App Engine program

Page 14: Application Engine Tracing

In the process monitor go to Details tab --- View Log/Trace, the trace file generated can be Viewed

Page 15: Application Engine Tracing

Statement Timing Trace• This trace enables you to gather performance information

to determine program bottlenecks. • The statement timings trace can be used for tuning an

Application Engine program.• Can Identify at which areas your App Engine is not working

as efficiently as it has to be. For instance, if compile counts are high, you can reduce the numbers by using the PeopleSoft Application Engine reuse feature. If inserts appear to be running slow and you have many of them, you can increase the performance by using the PeopleSoft Application Engine bulk insert feature. Each value in the trace, including cumulative totals, appears in a form rounded to the nearest tenth of a second, but totals are calculated using nonrounded timings.

Page 16: Application Engine Tracing

• You can write this trace to a file, or you can write the results to tables

• The statement timings trace populates the following tables. – PS_BAT_TIMINGS_LOG (Parent)

This table stores general information for a program run.– PS_BAT_TIMINGS_DTL (Child)

This table stores details associated with a program run, such as the execute count, fetch time, and so on.– PS_BAT_TIMINGS_FN

This table stores PeopleCode detail timings information.